aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ());