]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 191085 - Fix FetchSQLData compat code.
authorbbaetz%acm.org <>
Sun, 2 Feb 2003 13:49:23 +0000 (13:49 +0000)
committerbbaetz%acm.org <>
Sun, 2 Feb 2003 13:49:23 +0000 (13:49 +0000)
r,a=justdave

Bugzilla/DB.pm

index 53286da89d739a08748403469b2e6d0ab676420e..681b0597aeaad6e5bc1bfe0aef44604cbd35e990 100644 (file)
@@ -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 {