From 59e098fd12bfe3b980cfaf6735ac99de6ff5aea3 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Fri, 5 Aug 2005 00:01:01 +0000 Subject: =?UTF-8?q?Bug=20303088:=20MoreSQLData=20and=20FetchSQLData/FetchO?= =?UTF-8?q?neColumn=20may=20return=20wrong=20results=20-=20Patch=20by=20Fr?= =?UTF-8?q?=C3=A9d=C3=A9ric=20Buclin=20=20r=3Dwurblzap,?= =?UTF-8?q?justdave=20a=3Djustdave?= 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.1