diff options
author | Constantin Michael <constantin@codesynthesis.com> | 2011-11-07 15:22:44 +0200 |
---|---|---|
committer | Constantin Michael <constantin@codesynthesis.com> | 2011-11-08 14:46:52 +0200 |
commit | 1c9bf613aba99ca70a53b5f8f90e49225c7a56f1 (patch) | |
tree | 48934b2b36f2ed992f6b10978f15bc4eadee186d /oracle/types/driver.cxx | |
parent | 28a08724fc9e2ac494596711990206c64ca36b1d (diff) |
Add tests for Oracle INTERVAL temporal types
Diffstat (limited to 'oracle/types/driver.cxx')
-rw-r--r-- | oracle/types/driver.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/oracle/types/driver.cxx b/oracle/types/driver.cxx index 2eeb2e8..371388c 100644 --- a/oracle/types/driver.cxx +++ b/oracle/types/driver.cxx @@ -43,7 +43,10 @@ main (int argc, char* argv[]) o.binary_float_ = 1.123F; o.binary_double_ = 1.123; - o.date_ = date_time (2010, 8, 29, 15, 33, 18); + o.date_ = date_time (2010, 8, 29, 15, 33, 18, 0); + o.timestamp_ = date_time (1996, 3, 9, 18, 2, 54, 123000); + o.interval_ds_ = time_interval (0, 0, 13, 43, 23, 19, 123000); + o.interval_ym_ = time_interval (12, 3, 0, 0, 0, 0, 0); string vshort_str (8, 's'); string short_str (13, 's'); @@ -87,7 +90,7 @@ main (int argc, char* argv[]) // Testing of character set conversion to and from the client's database // character set is disabled as the server database character set may // not be able to represent some Unicode characters. If this were the case - // the test outcome be a false negative. + // the test outcome would be a false negative. // // o.char_ = unicode_str; // o.varchar2_ = unicode_str; |