I'm getting incorrect results when using the -having => \%conditions
syntax, apparently due to using placeholders in the generated HAVING
clause.
I'm using DBD::SQLite 1.39.
I've attached test code.
Here's the output:
% perl
tst.pl
$VAR1 = [];
$VAR1 = [
bless( {
'count(*)' => 1
}, 'Bar::Foo' )
];
The second $VAR1 value is the correct one, and corresponds to
submitting the condition as a string.
The generated SQL which produces the incorrect result uses a
placeholder, but is otherwise identical to the other.
Are bound parameters in HAVING not universally supported? A long time
Sybase user I asked did not believe that one could use placeholders in
HAVING clauses.
Thanks,
Diab