AddReserve had bogus prepare statement.
authorJoe Atzberger <joe.atzberger@liblime.com>
Tue, 13 Jan 2009 23:11:06 +0000 (17:11 -0600)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Tue, 26 May 2009 19:14:59 +0000 (21:14 +0200)
commit6432fe23a4255c742ae5bcc676ee8ca168601d38
tree127ecb31de9a47c6456693157966b28fa5b3f7a3
parente41bb4dd6421d91b9a67d14d2181c5b8dc242db3
AddReserve had bogus prepare statement.

This patch was not fully tested because the actual behavior intended
by constraints 'o' and 'e' was apparently never implemented here.
But it had no chance of success as with:
    my $sth = $dbh->prepare("");

This uses the inteneded query, removes unneeded $sth->finish calls and
fixes *some* redeclaration of my $variables in the same scope, as
would be needed to run under warnings pragma.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
C4/Reserves.pm