X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F15placeholders.t;h=55731a84aaf4b5826b6bf0aaf42d05e14541bcd8;hb=6c4d8eb8d2b9a5deb84400fd35f72c23818f442e;hp=f124e0317b66c3ba35020b1d219b5de12a654110;hpb=9d9d5bd62909b04bb5c75381dba0cb104b5411a0;p=dbsrgits%2FSQL-Abstract.git diff --git a/t/15placeholders.t b/t/15placeholders.t index f124e03..55731a8 100644 --- a/t/15placeholders.t +++ b/t/15placeholders.t @@ -33,8 +33,8 @@ use SQL::Abstract::Tree; placeholder_surround => [qw(' ')], }); - is $sqlat->format('SELECT ? as x, ? as y FROM Foo WHERE t > ? and z IN (?, ?, ?) ', [qw/frew ribasushi 2008-12-12 1 2 3/]), - q[SELECT 'frew' as x, 'ribasushi' as y FROM Foo WHERE t > '2008-12-12' AND z IN ( '1', '2', '3' )], 'Complex placeholders work'; + is $sqlat->format('SELECT ? AS x, ? AS y FROM Foo WHERE t > ? and z IN (?, ?, ?) ', [qw/frew ribasushi 2008-12-12 1 2 3/]), + q[SELECT 'frew' AS x, 'ribasushi' AS y FROM Foo WHERE t > '2008-12-12' AND z IN ( '1', '2', '3' )], 'Complex placeholders work'; } done_testing;