From: Matt S Trout Date: Mon, 7 Oct 2013 01:08:57 +0000 (+0000) Subject: allow gensym use for column that never escapes the query scope X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fcafcb2ee7246b35f47cb1492cac11cdc8b4615a;p=dbsrgits%2FDBIx-Class-Historic.git allow gensym use for column that never escapes the query scope --- diff --git a/t/sqlmaker/limit_dialects/generic_subq.t b/t/sqlmaker/limit_dialects/generic_subq.t index ef899ff..c94942e 100644 --- a/t/sqlmaker/limit_dialects/generic_subq.t +++ b/t/sqlmaker/limit_dialects/generic_subq.t @@ -115,7 +115,7 @@ is_same_sql_bind( '( SELECT "owner_name" FROM ( - SELECT "owner"."name" AS "owner_name", "me"."title" + SELECT "owner"."name" AS "owner_name", "title" AS "ORDER__BY__001" FROM "books" "me" JOIN "owners" "owner" ON "owner"."id" = "me"."owner" WHERE ( "source" = ? ) @@ -124,9 +124,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 "me"."title" ASC + ORDER BY "ORDER__BY__001" ASC )', [ [ { sqlt_datatype => 'varchar', sqlt_size => 100, dbic_colname => 'source' } => 'Library' ],