diff options
author | Constantin Michael <constantin@codesynthesis.com> | 2011-11-11 13:34:36 +0200 |
---|---|---|
committer | Constantin Michael <constantin@codesynthesis.com> | 2011-11-16 12:48:18 +0200 |
commit | 5b7ab91905867794c671d0eb64321f85d9afd5dd (patch) | |
tree | b7eae4826cf43bcc577afc4af5795c8ade6eff7b | |
parent | 452e0e09e62a7ead064cd7744250e43937cf09f1 (diff) |
Initialize datetime fields to valid values on construction
-rw-r--r-- | odb/oracle/oracle-types.hxx | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/odb/oracle/oracle-types.hxx b/odb/oracle/oracle-types.hxx index 5e08a87..802f535 100644 --- a/odb/oracle/oracle-types.hxx +++ b/odb/oracle/oracle-types.hxx @@ -214,8 +214,16 @@ namespace odb unsigned short flags; public: - datetime (unsigned short f = descriptor_cache | descriptor_free) - : descriptor (0), flags (f) + datetime (unsigned short f = descriptor_cache | descriptor_free): + descriptor (0), + flags (f), + year_ (1), + month_ (1), + day_ (1), + hour_ (0), + minute_ (0), + second_ (0), + nanosecond_ (0) { } |