summaryrefslogtreecommitdiffstats
path: root/Bugzilla/DB.pm
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-08-05 02:01:01 +0200
committerlpsolit%gmail.com <>2005-08-05 02:01:01 +0200
commit59e098fd12bfe3b980cfaf6735ac99de6ff5aea3 (patch)
tree3ee51944a5ec349a24958a9fa345dd789b29c5eb /Bugzilla/DB.pm
parent5d53c6ff19f77db3fbb3efff0f8f8d7df5ce717b (diff)
downloadbugzilla-59e098fd12bfe3b980cfaf6735ac99de6ff5aea3.tar.gz
bugzilla-59e098fd12bfe3b980cfaf6735ac99de6ff5aea3.tar.xz
Bug 303088: MoreSQLData and FetchSQLData/FetchOneColumn may return wrong results - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wurblzap,justdave a=justdave
Diffstat (limited to 'Bugzilla/DB.pm')
-rw-r--r--Bugzilla/DB.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/Bugzilla/DB.pm b/Bugzilla/DB.pm
index 7d1623b7b..43c14a551 100644
--- a/Bugzilla/DB.pm
+++ b/Bugzilla/DB.pm
@@ -73,6 +73,9 @@ use constant BLOB_TYPE => DBI::SQL_BLOB;
# Bugzilla.pm. See bug 192531 for details.
our $_current_sth;
our @SQLStateStack = ();
+
+my $_fetchahead;
+
sub SendSQL {
my ($str) = @_;
@@ -83,6 +86,8 @@ sub SendSQL {
# 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;
+
+ undef $_fetchahead;
}
# Its much much better to use bound params instead of this
@@ -99,8 +104,6 @@ sub SqlQuote {
return $res;
}
-# XXX - mod_perl
-my $_fetchahead;
sub MoreSQLData {
return 1 if defined $_fetchahead;