From: Matt S Trout Date: Thu, 6 Apr 2006 15:54:56 +0000 (+0000) Subject: Fixup to Cursor, updated Changes X-Git-Tag: v0.06001~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=182fee362308526aa3f6161e8d79d566e7df520e;p=dbsrgits%2FDBIx-Class.git Fixup to Cursor, updated Changes --- diff --git a/Changes b/Changes index bbf21f9..11d0595 100644 --- a/Changes +++ b/Changes @@ -2,7 +2,10 @@ Revision history for DBIx::Class 0.06001 - Added fix for quoting with single table - - Added fix for update on resultset + - Substantial fixes and improvements to deploy + - slice now uses search directly + - fixes for update() on resultset + - bugfix to Cursor to avoid error during DESTROY 0.06000 - Lots of documentation improvements diff --git a/lib/DBIx/Class/Storage/DBI/Cursor.pm b/lib/DBIx/Class/Storage/DBI/Cursor.pm index 2550adc..770608c 100644 --- a/lib/DBIx/Class/Storage/DBI/Cursor.pm +++ b/lib/DBIx/Class/Storage/DBI/Cursor.pm @@ -160,7 +160,7 @@ sub DESTROY { my ($self) = @_; $self->_check_forks_threads; - $self->{sth}->finish if $self->{sth}->{Active}; + $self->{sth}->finish if $self->{sth} && $self->{sth}->{Active}; } 1;