From 1d8870af31addbc3c2f71a6c1458ed8279b3e2f1 Mon Sep 17 00:00:00 2001
From: Boris Kolpackov
Date: Mon, 1 Sep 2014 14:06:05 +0200
Subject: Fix bug in soft-delete example in manual (deleted_data)
---
doc/manual.xhtml | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
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 NULL
and
therefore reduce the common case overhead to a single pointer
- per class.
+ per class. Note that we make the composite value column prefix
+ empty (the db column("")
pragma) in order to
+ keep the same column names for the deleted data members.
Soft-added and deleted data members can be used in objects,
composite values, views, and container value types. We can
--
cgit v1.1