X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F01generate.t;h=4c23c48e6a1e8d72fb3e0d178b87a587279e059f;hb=de63ce570a396ba4b165b40191bfc1ba4dd45089;hp=50e2f46dfcda497a9e1638b98ae47c2d9ef7afbd;hpb=c4ed66f4bd98994449fe7f34beb2820e2f8f2fcb;p=scpubgit%2FQ-Branch.git diff --git a/t/01generate.t b/t/01generate.t index 50e2f46..4c23c48 100644 --- a/t/01generate.t +++ b/t/01generate.t @@ -75,6 +75,14 @@ my @tests = ( bind => ['boom'] }, { + # this is maybe wrong but a single arg doesn't get quoted + func => 'select', + args => ['test', 'id', { a => { '!=', 'boom' } }], + stmt => 'SELECT id FROM test WHERE ( a != ? )', + stmt_q => 'SELECT id FROM `test` WHERE ( `a` != ? )', + bind => ['boom'] + }, + { func => 'update', args => ['test', {a => 'boom'}, {a => undef}], stmt => 'UPDATE test SET a = ? WHERE ( a IS NULL )',