do-/eludia — pull request #9 by jonny64 (2011-11-03 05:54:43+00:00)
Title: sql() wipes OR filter values afer first call

Example:
my $filters = [
['(users.label LIKE %?% OR users.comments LIKE %?%)' => ['Joe', 'anchor']]
];

sql ('users(id, fake, hours_from)' => [@$filters]);
sql ('users(SUM(hours_from))' => [@$filters]);

second call ignores filter, because
['(table.reason LIKE %?% OR table.label LIKE %?%)' => ['Joe', 'anchor']]
becomes
['(table.reason LIKE %?% OR table.label LIKE %?%)' => []]