From 1c39a556d667e2e11d07b669430242cabcc6bae6 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Fri, 21 Jun 2002 02:44:46 +0000 Subject: [PATCH] Fixed syntax error. --- 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 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; }