Patch from jesper to work round dumbass DBDs
Matt S Trout [Sat, 28 Jan 2006 15:56:05 +0000 (15:56 +0000)]
lib/DBIx/Class/Storage/DBI.pm

index f1bc49e..7cf09e6 100644 (file)
@@ -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 {