From: Matt S Trout Date: Sat, 18 Aug 2012 12:25:25 +0000 (+0100) Subject: genericsubq test fixups X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ba51868d7d84dc8f247b88de1c8e41a386e99ef4;p=dbsrgits%2FDBIx-Class-Historic.git genericsubq test fixups --- diff --git a/t/sqlmaker/limit_dialects/generic_subq.t b/t/sqlmaker/limit_dialects/generic_subq.t index ab117dd..e24e635 100644 --- a/t/sqlmaker/limit_dialects/generic_subq.t +++ b/t/sqlmaker/limit_dialects/generic_subq.t @@ -80,7 +80,7 @@ is_same_sql_bind( "owner__name" FROM ( SELECT "me"."id", "me"."source", "me"."owner", "me"."title", "me"."price", - "owner"."name" AS "owner__name" + "owner"."name" AS "owner__name", "title" AS "ORDER__BY__001" FROM "books" "me" JOIN "owners" "owner" ON "owner"."id" = "me"."owner" WHERE ( "source" = ? ) @@ -89,9 +89,9 @@ is_same_sql_bind( ( SELECT COUNT(*) FROM "books" "rownum__emulation" - WHERE "rownum__emulation"."title" > "me"."title" + WHERE "rownum__emulation"."title" > "ORDER__BY__001" ) BETWEEN ? AND ? - ORDER BY "title" DESC + ORDER BY "ORDER__BY__001" DESC )', [ [ { sqlt_datatype => 'varchar', sqlt_size => 100, dbic_colname => 'source' } => 'Library' ], @@ -117,20 +117,20 @@ $rs = $schema->resultset ('BooksInLibrary')->search ({}, { is_same_sql_bind( $rs->as_query, '( - SELECT "owner__name" + SELECT "owner"."name" FROM ( - SELECT "owner"."name" AS "owner__name", "title" + SELECT "owner"."name", "title" AS "ORDER__BY__001" FROM "books" "me" JOIN "owners" "owner" ON "owner"."id" = "me"."owner" WHERE ( "source" = ? ) - ) "me" + ) "owner" WHERE ( SELECT COUNT(*) FROM "books" "rownum__emulation" - WHERE "rownum__emulation"."title" < "me"."title" + WHERE "rownum__emulation"."title" < "ORDER__BY__001" ) BETWEEN ? AND ? - ORDER BY "title" + ORDER BY "ORDER__BY__001" )', [ [ { sqlt_datatype => 'varchar', sqlt_size => 100, dbic_colname => 'source' } => 'Library' ],