fixed a limitation with buildSearchQuery in SQL

started working on registrant search in EMS
This commit is contained in:
JT Smith 2008-04-04 18:37:53 +00:00
parent 4ca80ad734
commit ac3c7d18b9
6 changed files with 123 additions and 18 deletions

View file

@ -428,7 +428,7 @@ sub www_getTaxesAsJson {
my $sql = 'select SQL_CALC_FOUND_ROWS * from tax';
my $keywords = $form->get("keywords");
if ($keywords ne "") {
($sql, @placeholders) = $db->buildSearchQuery($sql, $keywords, [qw{country state city code}])
$db->buildSearchQuery(\$sql, \@placeholders, $keywords, [qw{country state city code}])
}
push(@placeholders, $sortKey, $sortDir, $startIndex, $numberOfResults);
$sql .= ' order by ? ? limit ?,?';