diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2014-09-01 14:06:05 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2014-09-01 14:06:05 +0200 |
commit | 1d8870af31addbc3c2f71a6c1458ed8279b3e2f1 (patch) | |
tree | 4952dfac83173e9d4c04c936df15f4a52a4fb6ed /doc | |
parent | b6f6e4cbbff4681550b3b163b5d4ab2c3ba44819 (diff) |
Fix bug in soft-delete example in manual (deleted_data)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/manual.xhtml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/manual.xhtml b/doc/manual.xhtml index 57b95af..f03398f 100644 --- a/doc/manual.xhtml +++ b/doc/manual.xhtml @@ -13183,6 +13183,7 @@ class person std::string last_; }; + #pragma db column("") std::unique_ptr<deleted_data> dd_; ... @@ -13193,7 +13194,9 @@ class person any of the deleted data members are being loaded. During the normal operation, however, the pointer will stay <code>NULL</code> and therefore reduce the common case overhead to a single pointer - per class.</p> + per class. Note that we make the composite value column prefix + empty (the <code>db column("")</code> pragma) in order to + keep the same column names for the deleted data members.</p> <p>Soft-added and deleted data members can be used in objects, composite values, views, and container value types. We can |