Changed getNextId to be usable from outside the system.

This commit is contained in:
JT Smith 2002-06-21 02:05:37 +00:00
parent 0fd597111d
commit bc5a588253

View file

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