diff options
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:: |