From 59e098fd12bfe3b980cfaf6735ac99de6ff5aea3 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Fri, 5 Aug 2005 00:01:01 +0000 Subject: Bug 303088: MoreSQLData and FetchSQLData/FetchOneColumn may return wrong results - Patch by Frédéric Buclin r=wurblzap,justdave a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/DB.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Bugzilla/DB.pm') 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; -- cgit v1.2.3-24-g4f1b