From ff17239429f51559fcfd84118a9518f69e82be04 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 21 Sep 2011 15:07:11 +0200 Subject: Use int instead of size_t for NULL-able value In case of nullable the ODB compiler is unable to determine that the wrapped type is size_t. This results in 64-bit integer being stored and 32-bit being loaded. This interacts badly with PG for some reason. --- common/view/test.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common') diff --git a/common/view/test.hxx b/common/view/test.hxx index dc3439c..37486aa 100644 --- a/common/view/test.hxx +++ b/common/view/test.hxx @@ -120,7 +120,7 @@ struct employer #pragma db id std::string name; - std::size_t head_count; + unsigned int head_count; std::vector employees; }; @@ -341,7 +341,7 @@ struct view7 std::string first_name; std::string last_name; - odb::nullable head_count; + odb::nullable head_count; }; // -- cgit v1.1