Subject: | Missing brackets in pod |
The following is an excerpt from the documenation:
To get an OR instead, you can combine it with the arrayref idea:
my %where => (
user => 'nwiger',
priority => [ {'=', 2}, {'!=', 1} ]
);
Which would generate:
$stmt = "WHERE user = ? AND priority = ? OR priority != ?";
@bind = ('nwiger', '2', '1');
I believe that the generated SQL should instead read:
$stmt = "WHERE user = ? AND (priority = ? OR priority != ?)";
This would certainly be what I'd intuitively expect to be generated, and seems to correspond
with current module behaviour.