]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 193985 - errors from SendSQL aren't being reported
authorbbaetz%acm.org <>
Thu, 20 Feb 2003 15:07:42 +0000 (15:07 +0000)
committerbbaetz%acm.org <>
Thu, 20 Feb 2003 15:07:42 +0000 (15:07 +0000)
r,a=justdave

Bugzilla/DB.pm

index 0de9b612c525d3ebd4bb455fa5854b61f46e9c56..29935928dee24ecd46212c84648ac8c1cb675294 100644 (file)
@@ -65,11 +65,11 @@ sub SendSQL {
 
     $_current_sth = Bugzilla->dbh->prepare($str);
 
+    $_current_sth->execute;
+
     # This is really really ugly, but its what we get for not doing
     # error checking for 5 years. See bug 189446 and bug 192531
     $_current_sth->{RaiseError} = 0;
-
-    return $_current_sth->execute;
 }
 
 # Its much much better to use bound params instead of this