[Bps-public-commit] r17090 - Prophet/branches/sqlite/lib/Prophet/Replica

sunnavy at bestpractical.com sunnavy at bestpractical.com
Wed Dec 3 11:17:32 EST 2008


Author: sunnavy
Date: Wed Dec  3 11:17:29 2008
New Revision: 17090

Modified:
   Prophet/branches/sqlite/lib/Prophet/Replica/sqlite.pm

Log:
$sth->rows only makes sense after fetching all rows

Modified: Prophet/branches/sqlite/lib/Prophet/Replica/sqlite.pm
==============================================================================
--- Prophet/branches/sqlite/lib/Prophet/Replica/sqlite.pm	(original)
+++ Prophet/branches/sqlite/lib/Prophet/Replica/sqlite.pm	Wed Dec  3 11:17:29 2008
@@ -619,7 +619,7 @@
 
     my $sth = $self->dbh->prepare("SELECT COUNT(uuid) from records WHERE type = ? AND uuid = ?");
     $sth->execute($args{type}, $args{uuid});
-    return $sth->rows;
+    return $sth->fetchrow_array;
 
 }
 



More information about the Bps-public-commit mailing list