summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorbbaetz%acm.org <>2003-02-02 14:49:23 +0100
committerbbaetz%acm.org <>2003-02-02 14:49:23 +0100
commit5581985d252232132c0d822aff48d12b189a1740 (patch)
tree92c3fea5c6b0937f639601c919bab5e6ff6726a1 /Bugzilla
parent393f13a4022de3eb44228bc75391733abec49054 (diff)
downloadbugzilla-5581985d252232132c0d822aff48d12b189a1740.tar.gz
bugzilla-5581985d252232132c0d822aff48d12b189a1740.tar.xz
Bug 191085 - Fix FetchSQLData compat code.
r,a=justdave
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/DB.pm9
1 files changed, 4 insertions, 5 deletions
diff --git a/Bugzilla/DB.pm b/Bugzilla/DB.pm
index 53286da89..681b0597a 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 {