From edcb5a6006d3857a328dc337db5493f274feab47 Mon Sep 17 00:00:00 2001 From: "bbaetz%acm.org" Date: Sun, 2 Feb 2003 05:49:23 +0000 Subject: [PATCH] Bug 191085 - Fix FetchSQLData compat code. r,a=justdave git-svn-id: svn://10.0.0.236/trunk@137274 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/Bugzilla/DB.pm | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/mozilla/webtools/bugzilla/Bugzilla/DB.pm b/mozilla/webtools/bugzilla/Bugzilla/DB.pm index 53286da89d7..681b0597aea 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/DB.pm +++ b/mozilla/webtools/bugzilla/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 {