aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-02-22 10:56:47 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-02-22 10:56:47 +0200
commit25d19411f3bee8b1aee6996ec0fc37010f849254 (patch)
tree075651fc549bedba47fae10f1d7881b36fae43bc
parentd832cf926d1ca180c4d691b09293e4f528e5e1bc (diff)
Fix iteration over uncached query result
-rw-r--r--odb/mysql/result.txx2
1 files changed, 1 insertions, 1 deletions
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 ());