-
Notifications
You must be signed in to change notification settings - Fork 14
Avoid SQL syntax error: column IN () #26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid SQL syntax error: column IN () #26
Conversation
| } elsif (ref($val) eq 'SCALAR') { | ||
| $col = $m->($col) if $m = $stmt->column_mutator; | ||
| $term = "$col $$val"; | ||
| } elsif (ref($val) eq 'REF') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@charsbar
I think we should also apply column_mutator at this block.
$col = $m->($col) if $m = $stmt->column_mutator;There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
usualoma
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Very nice PR!
Changelog diff is: diff --git a/Changes b/Changes index ed959bd..2784461 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,12 @@ {{$NEXT}} +0.16 2019-03-07T07:07:14Z + + - Avoid SQL syntax error: column IN () (charsbar) #26 + - Add disconnect method explicitly to pass tests for windows (twata1) #25 + +0.15 2017-04-19T01:41:02Z + - Fix failed tests with Perl 5.25.11 (miniuchi) #24 0.14 2016-01-14T03:03:02Z
cf. https://metacpan.org/source/TOKUHIROM/SQL-Maker-1.21/lib/SQL/Maker/Condition.pm#L114
More need to be done but for now.