aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-07-14 23:02:57 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-07-14 23:02:57 +0200
commit68e68a41c12710f37d82bcd464b217b33c18b03d (patch)
tree3733136bfd77388c9c036b40d7598a70979684b4
parent9fb98837b7661aa034e68b2cc9bbf869a9a6ba6b (diff)
Map unsigned short and int C++ types to SMALLINT and INTEGER by default
-rw-r--r--odb/pgsql/traits.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/odb/pgsql/traits.hxx b/odb/pgsql/traits.hxx
index 8308688..7a8df47 100644
--- a/odb/pgsql/traits.hxx
+++ b/odb/pgsql/traits.hxx
@@ -252,7 +252,7 @@ namespace odb
template <>
struct default_type_traits<unsigned short>
{
- static const database_type_id db_type_id = id_integer;
+ static const database_type_id db_type_id = id_smallint;
};
template <>
@@ -264,7 +264,7 @@ namespace odb
template <>
struct default_type_traits<unsigned int>
{
- static const database_type_id db_type_id = id_bigint;
+ static const database_type_id db_type_id = id_integer;
};
template <>