... | ... |
@@ -1697,7 +1697,10 @@ sub _where_clause_and_param { |
1697 | 1697 |
if defined $table_quote; |
1698 | 1698 |
if (ref $where->{$column} eq 'ARRAY') { |
1699 | 1699 |
my $c = join(', ', (":$column") x @{$where->{$column}}); |
1700 |
- push @$clause, "$column_quote in ( $c )"; |
|
1700 |
+ if (@{$where->{$column}}) { |
|
1701 |
+ push @$clause, "$column_quote in ( $c )"; |
|
1702 |
+ } |
|
1703 |
+ else { push @$clause, '1 <> 1' } |
|
1701 | 1704 |
} |
1702 | 1705 |
else { push @$clause, "$column_quote = :$column" } |
1703 | 1706 |
} |