aboutsummaryrefslogtreecommitdiff
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
parent4a23d7554de82ba24d10bfc6d165157d113fa447 (diff)
Simplify object_result::next and view_result::next implementations
-rw-r--r--odb/oracle/object-result.txx4
-rw-r--r--odb/oracle/view-result.txx4
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>