From 5a47ca6f1b1d03c221529cccd3941b3eed0ad922 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Mon, 25 Jul 2005 20:48:03 +0000 Subject: [PATCH] example for execute is wrong, takes an array ref, not array --- lib/WebGUI/SQL.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/WebGUI/SQL.pm b/lib/WebGUI/SQL.pm index 3b103d34c..07ac7ce36 100644 --- a/lib/WebGUI/SQL.pm +++ b/lib/WebGUI/SQL.pm @@ -39,7 +39,7 @@ Package for interfacing with SQL databases. This package implements Perl DBI fun use WebGUI::SQL; my $sth = WebGUI::SQL->prepare($sql); - $sth->execute(@values); + $sth->execute([ @values ]); $sth = WebGUI::SQL->read($sql); $sth = WebGUI::SQL->unconditionalRead($sql);