From: Matt S Trout Date: Mon, 30 Apr 2012 23:54:22 +0000 (+0000) Subject: tweak core_quoted sqlmaker test for ASC elimination and identifier extraction X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=dcc49c93c245b1673a1b897b5e12a1515d2efe88;p=dbsrgits%2FDBIx-Class-Historic.git tweak core_quoted sqlmaker test for ASC elimination and identifier extraction --- diff --git a/t/sqlmaker/core_quoted.t b/t/sqlmaker/core_quoted.t index a8a4af5..085e612 100644 --- a/t/sqlmaker/core_quoted.t +++ b/t/sqlmaker/core_quoted.t @@ -168,7 +168,7 @@ is_same_sql_bind( is_same_sql_bind( $sql, \@bind, - q/SELECT `me`.`cdid`, `me`.`artist`, `me`.`title`, `me`.`year` FROM `cd` `me` ORDER BY `year` DESC, `title` ASC/, [], + q/SELECT `me`.`cdid`, `me`.`artist`, `me`.`title`, `me`.`year` FROM `cd` `me` ORDER BY `year` DESC, `title`/, [], 'hashref ORDER BY okay (multiple values)' ); @@ -195,8 +195,8 @@ is_same_sql_bind( is_same_sql_bind( $sql, \@bind, - q/SELECT `me`.`cdid`, `me`.`artist`, `me`.`title`, `me`.`year` FROM `cd` `me` ORDER BY year DESC/, [], - 'did not quote ORDER BY with scalarref (single value)' + q/SELECT `me`.`cdid`, `me`.`artist`, `me`.`title`, `me`.`year` FROM `cd` `me` ORDER BY `year` DESC/, [], + 'identifier extracted for ORDER BY with scalarref (single value)' ); @@ -223,8 +223,8 @@ is_same_sql_bind( is_same_sql_bind( $sql, \@bind, - q/SELECT `me`.`cdid`, `me`.`artist`, `me`.`title`, `me`.`year` FROM `cd` `me` ORDER BY year DESC, title ASC/, [], - 'did not quote ORDER BY with scalarref (multiple values)' + q/SELECT `me`.`cdid`, `me`.`artist`, `me`.`title`, `me`.`year` FROM `cd` `me` ORDER BY `year` DESC, `title`/, [], + 'identifiers extracted for ORDER BY with scalarref (multiple values)' );