Changeset 2475 for branches/release-39/lib/MT/ObjectDriver/Driver/DBI.pm
- Timestamp:
- 06/02/08 02:15:39 (18 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/release-39/lib/MT/ObjectDriver/Driver/DBI.pm
r2473 r2475 201 201 my $i = 0; 202 202 return sub { 203 if (@_ && ($_[0] eq 'finish')) { 204 if ($sth) { 205 $sth->finish; 206 $driver->end_query($sth); 207 } 208 undef $sth; 209 return; 210 } 211 203 212 unless ($sth->fetch && defined $count && (!defined $limit || ($i < $limit))) { 204 213 $sth->finish;
