Lines Matching refs:colA

12     given => \'colA DESC',
13 expects => ' ORDER BY colA DESC',
14 expects_quoted => ' ORDER BY colA DESC',
17 given => 'colA',
18 expects => ' ORDER BY colA',
19 expects_quoted => ' ORDER BY `colA`',
22 given => 'colA DESC',
23 expects => ' ORDER BY colA DESC',
24 expects_quoted => ' ORDER BY `colA DESC`',
27 given => [qw/colA colB/],
28 expects => ' ORDER BY colA, colB',
29 expects_quoted => ' ORDER BY `colA`, `colB`',
32 given => ['colA ASC', 'colB DESC'],
33 expects => ' ORDER BY colA ASC, colB DESC',
34 expects_quoted => ' ORDER BY `colA ASC`, `colB DESC`',
37 given => {-asc => 'colA'},
38 expects => ' ORDER BY colA ASC',
39 expects_quoted => ' ORDER BY `colA` ASC',
47 given => [{-asc => 'colA'}, {-desc => 'colB'}],
48 expects => ' ORDER BY colA ASC, colB DESC',
49 expects_quoted => ' ORDER BY `colA` ASC, `colB` DESC',
52 given => ['colA', {-desc => 'colB'}],
53 expects => ' ORDER BY colA, colB DESC',
54 expects_quoted => ' ORDER BY `colA`, `colB` DESC',
63 given => [{-desc => [ qw/colA colB/ ] }],
64 expects => ' ORDER BY colA DESC, colB DESC',
65 expects_quoted => ' ORDER BY `colA` DESC, `colB` DESC',
68 given => [{-desc => [ qw/colA colB/ ] }, {-asc => 'colC'}],
69 expects => ' ORDER BY colA DESC, colB DESC, colC ASC',
70 expects_quoted => ' ORDER BY `colA` DESC, `colB` DESC, `colC` ASC',
73 given => [{-desc => [ qw/colA colB/ ] }, {-asc => [ qw/colC colD/ ] }],
74 expects => ' ORDER BY colA DESC, colB DESC, colC ASC, colD ASC',
75 expects_quoted => ' ORDER BY `colA` DESC, `colB` DESC, `colC` ASC, `colD` ASC',
78 given => [{-desc => [ qw/colA colB/ ] }, {-desc => 'colC' }],
79 expects => ' ORDER BY colA DESC, colB DESC, colC DESC',
80 expects_quoted => ' ORDER BY `colA` DESC, `colB` DESC, `colC` DESC',
83 given => [{ -asc => 'colA' }, { -desc => [qw/colB/] }, { -asc => [qw/colC colD/] }],
84 expects => ' ORDER BY colA ASC, colB DESC, colC ASC, colD ASC',
85 expects_quoted => ' ORDER BY `colA` ASC, `colB` DESC, `colC` ASC, `colD` ASC',
88 given => { -desc => \['colA LIKE ?', 'test'] },
89 expects => ' ORDER BY colA LIKE ? DESC',
90 expects_quoted => ' ORDER BY colA LIKE ? DESC',
94 given => \['colA LIKE ? DESC', 'test'],
95 expects => ' ORDER BY colA LIKE ? DESC',
96 expects_quoted => ' ORDER BY colA LIKE ? DESC',
100 …given => [ { -asc => \['colA'] }, { -desc => \['colB LIKE ?', 'test'] }, { -asc => \['colC LIKE ?'…
101 expects => ' ORDER BY colA ASC, colB LIKE ? DESC, colC LIKE ? ASC',
102 expects_quoted => ' ORDER BY colA ASC, colB LIKE ? DESC, colC LIKE ? ASC',
131 sub { $sql->_order_by({-desc => 'colA', -asc => 'colB' }) },
137 sub { $sql->_order_by({-desc => [ qw/colA colB/ ], -asc => [ qw/colC colD/ ] }) },