diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-09-10 14:03:21 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-09-17 12:04:03 +0200 |
commit | 86a83893351adef44574514c303aa880cf3b6d54 (patch) | |
tree | 706ba87b0bd2a8ffbdd3e1e55f6850a2119039cb /evolution/soft-delete/model.hxx | |
parent | 22415f5ec7d53fbad4818ac31a42d6e623b8afa9 (diff) |
Add soft-add/delete auto id test, LOB/long data test
Diffstat (limited to 'evolution/soft-delete/model.hxx')
-rw-r--r-- | evolution/soft-delete/model.hxx | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/evolution/soft-delete/model.hxx b/evolution/soft-delete/model.hxx index 5df2cee..ef5bc68 100644 --- a/evolution/soft-delete/model.hxx +++ b/evolution/soft-delete/model.hxx @@ -413,6 +413,26 @@ namespace MODEL_NAMESPACE(MODEL_VERSION) #endif } + // Test soft-deleted member in an object with auto id. + // + #pragma db namespace table("t14_") + namespace test14 + { + #pragma db object + struct object + { + std::string str; + unsigned long num; + + #pragma db id auto + unsigned long id; + }; + +#if MODEL_VERSION == 3 + #pragma db member(object::str) deleted(3) +#endif + } + #endif // DATABASE_SQLITE // Test soft-deleted container member in a non-versioned object. |