aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-10-08 12:25:58 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-10-08 12:25:58 +0200
commitdcee8530bb5c58710a22f50bb92ac7c3b19ddf84 (patch)
tree9e28af29f44485eea9040d649750c52cc8d5b7be
parent7adf3d7aebbdea54f83a3654182cc9aafd4a8b41 (diff)
Fix issue with unbind data management in query with descriptors
-rw-r--r--oracle/types/driver.cxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/oracle/types/driver.cxx b/oracle/types/driver.cxx
index 554c506..7c3e6bd 100644
--- a/oracle/types/driver.cxx
+++ b/oracle/types/driver.cxx
@@ -254,6 +254,21 @@ main (int argc, char* argv[])
assert (size (r) == 1);
}
+ {
+ // Query temporary.
+ //
+ result r (db->query<object> (
+ query::timestamp == o.timestamp_ &&
+ query::interval_ym == o.interval_ym_ &&
+ query::interval_ds == o.interval_ds_));
+
+ query dummy (query::timestamp == o.timestamp_ &&
+ query::interval_ym == o.interval_ym_ &&
+ query::interval_ds == o.interval_ds_);
+
+ assert (size (r) == 1);
+ }
+
t.commit ();
}
}