t/sqlmaker/quotes/quotes_newstyle.t - ORDER BY parsing means we quote, but not misquote
Matt S Trout [Sat, 12 Oct 2013 16:01:39 +0000 (16:01 +0000)]
t/sqlmaker/quotes/quotes_newstyle.t

index c122517..f51298a 100644 (file)
@@ -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,