summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla/DB.pm9
1 files changed, 8 insertions, 1 deletions
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 {