From 01ba76036b5d9dbf57a0909869c4811f12ea8bee Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 4 May 2016 21:01:22 +0200 Subject: Ignore section logic when dealing with container elements The container member itself can be in a section. --- common/section/basics/test.hxx | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'common/section/basics/test.hxx') diff --git a/common/section/basics/test.hxx b/common/section/basics/test.hxx index 60b69da..9dcb48a 100644 --- a/common/section/basics/test.hxx +++ b/common/section/basics/test.hxx @@ -597,4 +597,33 @@ namespace test18 }; } +// Regression: BLOB in a value type used as a map value that is in a section. +// +#include +#include + +#pragma db namespace table("t19_") +namespace test19 +{ + #pragma db value + struct value + { + #pragma db type(BLOB_TYPE) + std::vector b; + }; + + #pragma db object + struct object + { + #pragma db id auto + unsigned long id; + + #pragma db load(lazy) update(always) + odb::section s; + + #pragma db section(s) + std::map m; + }; +} + #endif // TEST_HXX -- cgit v1.1