From 2c10f5e22342aa4db674fdad4b0dd68403ce05d2 Mon Sep 17 00:00:00 2001 From: "bbaetz%acm.org" <> Date: Thu, 23 Jan 2003 15:11:42 +0000 Subject: Bug 189446 - Can't change product of a bug r, a=justdave --- Bugzilla/DB.pm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Bugzilla') diff --git a/Bugzilla/DB.pm b/Bugzilla/DB.pm index 4b5d31c14..c4c861cb9 100644 --- a/Bugzilla/DB.pm +++ b/Bugzilla/DB.pm @@ -97,7 +97,14 @@ sub FetchSQLData { undef $_fetchahead; return @result; } - return $_current_sth->fetchrow_array; + + # This is really really ugly, but its what we get for not doing + # error checking for 5 years. See bug 189446. + my @ret; + eval { + @ret = $_current_sth->fetchrow_array; + }; + return @ret; } sub FetchOneColumn { -- cgit v1.2.3-24-g4f1b