From: Matt S Trout Date: Sat, 12 Oct 2013 16:01:39 +0000 (+0000) Subject: t/sqlmaker/quotes/quotes_newstyle.t - ORDER BY parsing means we quote, but not misquote X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e331ee499abdfa164c25080c64080be43f8bec9f;p=dbsrgits%2FDBIx-Class.git t/sqlmaker/quotes/quotes_newstyle.t - ORDER BY parsing means we quote, but not misquote --- diff --git a/t/sqlmaker/quotes/quotes_newstyle.t b/t/sqlmaker/quotes/quotes_newstyle.t index c122517..f51298a 100644 --- a/t/sqlmaker/quotes/quotes_newstyle.t +++ b/t/sqlmaker/quotes/quotes_newstyle.t @@ -45,7 +45,7 @@ like($sql, qr/ORDER BY `\Q${order}\E`/, 'quoted ORDER BY with DESC (should use a $rs = $schema->resultset('CD')->search({}, { 'order_by' => \$order }); eval { $rs->first }; -like($sql, qr/ORDER BY \Q${order}\E/, 'did not quote ORDER BY with scalarref'); +like($sql, qr/ORDER BY `year` DESC/, 'did not misquote ORDER BY with scalarref'); $schema->connection( $dsn,