From bc5a5882530060a7d703e126f363d052f6b10b3e Mon Sep 17 00:00:00 2001 From: JT Smith Date: Fri, 21 Jun 2002 02:05:37 +0000 Subject: [PATCH] Changed getNextId to be usable from outside the system. --- lib/WebGUI/SQL.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/WebGUI/SQL.pm b/lib/WebGUI/SQL.pm index e6aa0168b..9b7b083ad 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]'"); - 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; }