Bug 11814: Fix sql parameters order

Oops, bad paramaters passed on executing the sql query produced
unexpected behaviors.

Signed-off-by: Paola Rossi <paola.rossi@cineca.it>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
Jonathan Druart 2014-11-25 10:01:05 +01:00 committed by Tomas Cohen Arazi
parent 4598479fd5
commit 89bfc422e6

View file

@ -282,7 +282,7 @@ sub UpdateClaimdateIssues {
WHERE serialid in (" . join( ",", map { '?' } @$serialids ) . ")
";
my $rq = $dbh->prepare($query);
$rq->execute($date, @$serialids, CLAIMED);
$rq->execute($date, CLAIMED, @$serialids);
return $rq->rows;
}