aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-11-01 13:03:04 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-11-01 13:23:31 +0200
commite0ab16f484d0b39e3760a063b3416cbd74a26c5e (patch)
tree448bbd224b3b37a2ebc21a3a75eaf377e43084e2
parentad08cb95b37b640ab22ad1fff5bdc489674f75b2 (diff)
Immediately specify a query as done if on execution the result set is empty
-rw-r--r--odb/oracle/statement.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/odb/oracle/statement.cxx b/odb/oracle/statement.cxx
index 129b237..8e96696 100644
--- a/odb/oracle/statement.cxx
+++ b/odb/oracle/statement.cxx
@@ -594,7 +594,7 @@ namespace odb
if (r == OCI_ERROR || r == OCI_INVALID_HANDLE)
translate_error (err, r);
- done_ = false;
+ done_ = r == OCI_NO_DATA;
#ifndef NDEBUG
ub4 n (0);