Add value-only insert test with a literal sql snippet
Peter Rabbitson [Sun, 8 Mar 2009 21:25:14 +0000 (21:25 +0000)]
t/01generate.t

index 0d94876..675c273 100644 (file)
@@ -190,6 +190,13 @@ my @tests = (
               stmt_q => 'INSERT INTO `test`.`table` (`high_limit`, `low_limit`) VALUES (max(all_limits), ?)',
               bind   => ['4'],
       },             
+      {              
+              func   => 'insert',
+              args   => ['test.table', [ \'max(all_limits)', 4 ] ],
+              stmt   => 'INSERT INTO test.table VALUES (max(all_limits), ?)',
+              stmt_q => 'INSERT INTO `test`.`table` VALUES (max(all_limits), ?)',
+              bind   => ['4'],
+      },             
       #23            
       {              
               func   => 'insert',