Bug 303088: MoreSQLData and FetchSQLData/FetchOneColumn may return wrong results - Patch by Fr�d�ric Buclin <LpSolit@gmail.com> r=wurblzap,justdave a=justdave

This commit is contained in:
lpsolit%gmail.com 2005-08-04 17:01:01 +00:00
Родитель 32732d2845
Коммит 0df21af806
1 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -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;