diff options
author | Constantin Michael <constantin@codesynthesis.com> | 2011-07-13 10:04:57 +0200 |
---|---|---|
committer | Constantin Michael <constantin@codesynthesis.com> | 2011-07-13 10:04:57 +0200 |
commit | b5bc00cd10475d831de1952086c08fcbcb57dbb6 (patch) | |
tree | ddb5ad25f665e0631d562ea9999607493c7b6d0e /odb/relational/pgsql/common.cxx | |
parent | 05c106fa3f7fbb66b9cb6209bf76479ba6a5f21e (diff) |
Add support for DATE, TIME and TIMESTAMP PostgreSQL types
Diffstat (limited to 'odb/relational/pgsql/common.cxx')
-rw-r--r-- | odb/relational/pgsql/common.cxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/odb/relational/pgsql/common.cxx b/odb/relational/pgsql/common.cxx index 4a22d46..c5e3c9f 100644 --- a/odb/relational/pgsql/common.cxx +++ b/odb/relational/pgsql/common.cxx @@ -174,6 +174,13 @@ namespace relational "float", "double" }; + + const char* date_time_types[] = + { + "int", + "long long", + "long long" + }; } member_image_type:: @@ -217,9 +224,9 @@ namespace relational } void member_image_type:: - traverse_date_time (member_info&) + traverse_date_time (member_info& mi) { - type_ = "details::buffer"; + type_ = date_time_types[mi.st->type - sql_type::DATE]; } void member_image_type:: |