aboutsummaryrefslogtreecommitdiff
path: root/oracle
diff options
context:
space:
mode:
Diffstat (limited to 'oracle')
-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 ();
}
}