($sql, @bind) = $self->_where_field_op_ARRAYREF($k, $op, $val);
}
+ # CASE: col => {op => \$scalar}
+ elsif (ref $val eq 'SCALAR') {
+ $sql = join ' ', $self->_convert($self->_quote($k)),
+ $self->_sqlcase($op),
+ $$val;
+ }
+
# CASE: col => {op => undef} : sql "IS (NOT)? NULL"
elsif (! defined($val)) {
my $is = ($op =~ $self->{equality_op}) ? 'is' :
=item *
+support for the { operator => \"..." } construct (to embed literal SQL)
+
+=item *
+
added -nest1, -nest2 or -nest_1, -nest_2, ...
=item *
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],
+ },
);