So if Adrian or someone else from GT is going to read this we are suggesting to change in Condition.pm:
# SQL: NOT(column IN (1,2,3))
elsif ($op eq '!=' || $op eq '<>' and ref $val eq 'ARRAY') {
to:
# SQL: NOT(column IN (1,2,3))
elsif (uc $op eq 'NOT IN' || $op eq '!=' || $op eq '<>' and ref $val eq 'ARRAY') {
My Perl is too weak to know if it has to be:
# SQL: NOT(column IN (1,2,3))
elsif ((uc $op eq 'NOT IN' || $op eq '!=' || $op eq '<>') and ref $val eq 'ARRAY') {
with three parameters, but I guess that or will be ok for two "||" without a bracket as well.
Regards
Niko
Code:
# Perl: column => '!=' => [1,2,3] # SQL: NOT(column IN (1,2,3))
elsif ($op eq '!=' || $op eq '<>' and ref $val eq 'ARRAY') {
to:
Code:
# Perl: column => '!=' => [1,2,3] # SQL: NOT(column IN (1,2,3))
elsif (uc $op eq 'NOT IN' || $op eq '!=' || $op eq '<>' and ref $val eq 'ARRAY') {
My Perl is too weak to know if it has to be:
Code:
# Perl: column => '!=' => [1,2,3] # SQL: NOT(column IN (1,2,3))
elsif ((uc $op eq 'NOT IN' || $op eq '!=' || $op eq '<>') and ref $val eq 'ARRAY') {
with three parameters, but I guess that or will be ok for two "||" without a bracket as well.
Regards
Niko