diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-09-21 15:07:11 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-09-21 15:07:11 +0200 |
commit | ff17239429f51559fcfd84118a9518f69e82be04 (patch) | |
tree | 3528e400cc2ee81f5f5d38ee9dd420245cd67c3d /common/view/test.hxx | |
parent | b434d9d0245aa03879155fb830613f471af12976 (diff) |
Use int instead of size_t for NULL-able value
In case of nullable<size_t> 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.
Diffstat (limited to 'common/view/test.hxx')
-rw-r--r-- | common/view/test.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
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<person*> employees; }; @@ -341,7 +341,7 @@ struct view7 std::string first_name; std::string last_name; - odb::nullable<std::size_t> head_count; + odb::nullable<unsigned int> head_count; }; // |