X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fsqlahacks%2Fsql_maker%2Fsql_maker_quote.t;h=4392cc25fc4cdb3c838bc0c5ae257b0b70cbf060;hb=cc42fa9ac80f921b0f835fbd3bd9088e3d1d14c9;hp=dce696bfa3a9e180731a61a9faca0529cf6b4ff8;hpb=a70cf072d97d8aeeaa36076f1638e9decc1443fc;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/sqlahacks/sql_maker/sql_maker_quote.t b/t/sqlahacks/sql_maker/sql_maker_quote.t index dce696b..4392cc2 100644 --- a/t/sqlahacks/sql_maker/sql_maker_quote.t +++ b/t/sqlahacks/sql_maker/sql_maker_quote.t @@ -48,7 +48,7 @@ my ($sql, @bind) = $sql_maker->select( 'artist.name' => 'Caterwauler McCrae', 'me.year' => 2001 }, - [], + {}, undef, undef ); @@ -80,7 +80,7 @@ is_same_sql_bind( 'me.year' ], undef, - 'year DESC', + { order_by => 'year DESC' }, undef, undef ); @@ -105,10 +105,10 @@ is_same_sql_bind( 'me.year' ], undef, - [ + { order_by => [ 'year DESC', 'title ASC' - ], + ]}, undef, undef ); @@ -133,7 +133,7 @@ is_same_sql_bind( 'me.year' ], undef, - { -desc => 'year' }, + { order_by => { -desc => 'year' } }, undef, undef ); @@ -158,10 +158,10 @@ is_same_sql_bind( 'me.year' ], undef, - [ + { order_by => [ { -desc => 'year' }, - { -asc => 'title' } - ], + { -asc => 'title' }, + ]}, undef, undef ); @@ -188,7 +188,7 @@ is_same_sql_bind( 'me.year' ], undef, - \'year DESC', + { order_by => \'year DESC' }, undef, undef ); @@ -213,10 +213,10 @@ is_same_sql_bind( 'me.year' ], undef, - [ + { order_by => [ \'year DESC', \'title ASC' - ], + ]}, undef, undef ); @@ -283,9 +283,9 @@ is_same_sql_bind( 'me.*' ], undef, - [], undef, - undef + undef, + undef, ); is_same_sql_bind( @@ -328,9 +328,9 @@ $sql_maker->quote_char([qw/[ ]/]); 'artist.name' => 'Caterwauler McCrae', 'me.year' => 2001 }, - [], undef, - undef + undef, + undef, ); is_same_sql_bind(