aboutsummaryrefslogtreecommitdiff
path: root/odb/oracle/view-result.txx
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-10-27 12:14:54 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-10-27 12:14:54 +0200
commit4376b0e4c13286dde86e79d9a0fffaaa8d026e55 (patch)
treefd2221aa69db751cd7a0b19ae8637b6b96014728 /odb/oracle/view-result.txx
parent4a23d7554de82ba24d10bfc6d165157d113fa447 (diff)
Simplify object_result::next and view_result::next implementations
Diffstat (limited to 'odb/oracle/view-result.txx')
-rw-r--r--odb/oracle/view-result.txx4
1 files changed, 2 insertions, 2 deletions
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>