aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ())
{