Fixed syntax error.

This commit is contained in:
JT Smith 2002-06-21 02:44:46 +00:00
parent bc5a588253
commit 1c39a556d6

View file

@ -235,8 +235,8 @@ sub getColumnNames {
sub getNextId {
my ($id);
($id) = WebGUI::SQL->quickArray("select nextValue from incrementer where incrementerId='$_[0]'",$dbh);
WebGUI::SQL->write("update incrementer set nextValue=nextValue+1 where incrementerId='$_[0]'",$dbh);
($id) = WebGUI::SQL->quickArray("select nextValue from incrementer where incrementerId='$_[0]'",$_[1]);
WebGUI::SQL->write("update incrementer set nextValue=nextValue+1 where incrementerId='$_[0]'",$_[1]);
return $id;
}