From 68e68a41c12710f37d82bcd464b217b33c18b03d Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Thu, 14 Jul 2011 23:02:57 +0200 Subject: Map unsigned short and int C++ types to SMALLINT and INTEGER by default --- odb/pgsql/traits.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'odb') 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 { - 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 { - static const database_type_id db_type_id = id_bigint; + static const database_type_id db_type_id = id_integer; }; template <> -- cgit v1.1