aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-04-22 14:07:32 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-04-22 14:07:32 +0200
commitf451780acdac758a8309fe9346195827160f8184 (patch)
treec94fe5ded0c2aee8e122b6cb1e7816ef0d0555fb
parent8601e5a236a2b5b957ec9d3bb5cae78fce5a97c6 (diff)
Initial support for non-polymorphic inheritance
Every class gets a separate table. New test: common/inheritance.
-rw-r--r--odb/mysql/result.txx4
1 files changed, 3 insertions, 1 deletions
diff --git a/odb/mysql/result.txx b/odb/mysql/result.txx
index e207f73..db444eb 100644
--- a/odb/mysql/result.txx
+++ b/odb/mysql/result.txx
@@ -115,7 +115,9 @@ namespace odb
continue;
typename object_traits::image_type& im (statements_.image ());
- object_traits::grow (im, statements_.out_image_truncated ());
+
+ if (object_traits::grow (im, statements_.out_image_truncated ()))
+ im.version++;
if (im.version != statements_.out_image_version ())
{