From 25d19411f3bee8b1aee6996ec0fc37010f849254 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 22 Feb 2011 10:56:47 +0200 Subject: Fix iteration over uncached query result --- odb/mysql/result.txx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odb/mysql/result.txx b/odb/mysql/result.txx index 67ce82d..b0ffe97 100644 --- a/odb/mysql/result.txx +++ b/odb/mysql/result.txx @@ -100,7 +100,7 @@ namespace odb } } - while (count_ > statement_->fetched ()) + while (!this->end_ && count_ > statement_->fetched ()) { select_statement::result r (statement_->fetch ()); -- cgit v1.1