Skip to content
Extraits de code Groupes Projets
Valider 46e08b68 rédigé par Alexandre Morignot's avatar Alexandre Morignot
Parcourir les fichiers

bugfix: don't fetch data on a sold out query

parent 8af52767
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -70,9 +70,15 @@ sub _get_next { ...@@ -70,9 +70,15 @@ sub _get_next {
my $result = $self->_sth->{$chan}->fetch(); my $result = $self->_sth->{$chan}->fetch();
return $result if ($result); return $result if ($result);
# there is no more data to fetch # we come here only if there is no more data to fetch
# we take care of the db
$self->_sth->{$chan} = undef; $self->_sth->{$chan} = undef;
$self->_get_dbh($chan)->commit(); $self->_get_dbh($chan)->commit();
# we remove the query
$self->_queries->{$chan} = undef;
return undef; return undef;
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter