diff options
-rw-r--r-- | odb/oracle/object-result.txx | 4 | ||||
-rw-r--r-- | odb/oracle/view-result.txx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/odb/oracle/object-result.txx b/odb/oracle/object-result.txx index 01a8a6f..6921088 100644 --- a/odb/oracle/object-result.txx +++ b/odb/oracle/object-result.txx @@ -89,8 +89,8 @@ namespace odb b.version++; } - this->end_ = this->end_ || - (statement_->fetch () == select_statement::success ? false : true); + if (statement_->fetch () == select_statement::no_data) + this->end_ = true; } template <typename T> diff --git a/odb/oracle/view-result.txx b/odb/oracle/view-result.txx index b2049b8..e29f533 100644 --- a/odb/oracle/view-result.txx +++ b/odb/oracle/view-result.txx @@ -57,8 +57,8 @@ namespace odb b.version++; } - this->end_ = this->end_ || - (statement_->fetch () == select_statement::success ? false : true); + if (statement_->fetch () == select_statement::no_data) + this->end_ = true; } template <typename T> |