stmt_q => 'UPDATE `test` SET `a` = ?, `b` = ?',
bind => [[a => 1], [b => [1, 1, 2, 3, 5, 8]]],
},
+ #37
+ {
+ func => 'select',
+ args => ['test', '*', { a => {'>', \'1 + 1'}, b => 8 }],
+ stmt => 'SELECT * FROM test WHERE ( a > 1 + 1 AND b = ? )',
+ stmt_q => 'SELECT * FROM `test` WHERE ( `a` > 1 + 1 AND `b` = ? )',
+ bind => [8],
+ },
+ #38
+ {
+ func => 'select',
+ args => ['test', '*', { a => {'<' => \["to_date(?, 'MM/DD/YY')", '02/02/02']}, b => 8 }],
+ stmt => 'SELECT * FROM test WHERE ( a < to_date(?, \'MM/DD/YY\') AND b = ? )',
+ stmt_q => 'SELECT * FROM `test` WHERE ( `a` < to_date(?, \'MM/DD/YY\') AND `b` = ? )',
+ bind => ['02/02/02', 8],
+ },
+ #39
+ { #TODO in SQLA >= 2.0 it will die instead (we kept this just because old SQLA passed it through)
+ func => 'insert',
+ args => ['test', {a => 1, b => 2, c => 3, d => 4, e => { answer => 42 }}],
+ stmt => 'INSERT INTO test (a, b, c, d, e) VALUES (?, ?, ?, ?, ?)',
+ stmt_q => 'INSERT INTO `test` (`a`, `b`, `c`, `d`, `e`) VALUES (?, ?, ?, ?, ?)',
+ bind => [qw/1 2 3 4/, { answer => 42}],
+ },
);