From: Matt S Trout Date: Sat, 28 Jan 2006 15:56:05 +0000 (+0000) Subject: Patch from jesper to work round dumbass DBDs X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6157db4fe181ba8dbd4518aed34b8f9141083418;p=dbsrgits%2FDBIx-Class-Historic.git Patch from jesper to work round dumbass DBDs --- diff --git a/lib/DBIx/Class/Storage/DBI.pm b/lib/DBIx/Class/Storage/DBI.pm index f1bc49e..7cf09e6 100644 --- a/lib/DBIx/Class/Storage/DBI.pm +++ b/lib/DBIx/Class/Storage/DBI.pm @@ -350,10 +350,14 @@ sub select { return $self->cursor->new($self, \@_, $attrs); } +# Need to call finish() to work round broken DBDs + sub select_single { my $self = shift; my ($rv, $sth, @bind) = $self->_select(@_); - return $sth->fetchrow_array; + my @row = $sth->fetchrow_array; + $sth->finish(); + return @row; } sub sth {