From: bbaetz%acm.org <> Date: Sun, 2 Feb 2003 13:49:23 +0000 (+0000) Subject: Bug 191085 - Fix FetchSQLData compat code. X-Git-Tag: bugzilla-2.17.4~89 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5581985d252232132c0d822aff48d12b189a1740;p=thirdparty%2Fbugzilla.git Bug 191085 - Fix FetchSQLData compat code. r,a=justdave --- diff --git a/Bugzilla/DB.pm b/Bugzilla/DB.pm index 53286da89d..681b0597ae 100644 --- a/Bugzilla/DB.pm +++ b/Bugzilla/DB.pm @@ -100,11 +100,10 @@ sub FetchSQLData { # 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; + { + local $_current_sth->{RaiseError}; + return $_current_sth->fetchrow_array; + } } sub FetchOneColumn {