diff --git a/lib/WebGUI/SQL.pm b/lib/WebGUI/SQL.pm index 9b7b083ad..5f51f5867 100644 --- a/lib/WebGUI/SQL.pm +++ b/lib/WebGUI/SQL.pm @@ -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; }