projects
/
dbsrgits/SQL-Abstract.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Allow { -in => $scalar }
[dbsrgits/SQL-Abstract.git]
/
lib
/
SQL
/
Abstract
/
Converter.pm
diff --git
a/lib/SQL/Abstract/Converter.pm
b/lib/SQL/Abstract/Converter.pm
index
5dad2b7
..
ec12707
100644
(file)
--- a/
lib/SQL/Abstract/Converter.pm
+++ b/
lib/SQL/Abstract/Converter.pm
@@
-483,6
+483,7
@@
sub _where_hashpair_to_dq {
}
};
if ($op eq 'BETWEEN' or $op eq 'IN' or $op eq 'NOT IN' or $op eq 'NOT BETWEEN') {
+ $rhs = [$rhs] unless ref $rhs;
if (ref($rhs) ne 'ARRAY') {
if ($op =~ /IN$/) {
# have to add parens if none present because -in => \"SELECT ..."