aboutsummaryrefslogtreecommitdiff
path: root/evolution/drop-column
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-09-03 12:49:15 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-09-17 12:04:02 +0200
commitd3689b6cd0b01ea4872cefbe99dbaef95febd64d (patch)
tree4451ff9338c967b5d430d2145216fca74149e210 /evolution/drop-column
parent179eb696191958bae891916eec2708c4d3e34983 (diff)
Handling of dynamic empty statements as result of versioning
Diffstat (limited to 'evolution/drop-column')
-rw-r--r--evolution/drop-column/driver.cxx3
-rw-r--r--evolution/drop-column/model.hxx11
2 files changed, 12 insertions, 2 deletions
diff --git a/evolution/drop-column/driver.cxx b/evolution/drop-column/driver.cxx
index 099fe0f..4078c58 100644
--- a/evolution/drop-column/driver.cxx
+++ b/evolution/drop-column/driver.cxx
@@ -70,7 +70,7 @@ main (int argc, char* argv[])
}
case 2:
{
- using namespace v2; // @@ soft delete
+ using namespace v3;
if (embedded)
{
@@ -108,6 +108,7 @@ main (int argc, char* argv[])
{
transaction t (db->begin ());
auto_ptr<object> p (db->load<object> (1));
+ assert (p->str == "");
t.commit ();
}
break;
diff --git a/evolution/drop-column/model.hxx b/evolution/drop-column/model.hxx
index 42a8f54..feff041 100644
--- a/evolution/drop-column/model.hxx
+++ b/evolution/drop-column/model.hxx
@@ -31,9 +31,18 @@ namespace MODEL_NAMESPACE(MODEL_VERSION)
// SQLite doesn't support dropping of columns.
//
#ifndef DATABASE_SQLITE
-#if MODEL_VERSION == 2
+#if MODEL_VERSION >= 2
+
+#if MODEL_VERSION == 3
+ #pragma db deleted(3)
+#endif
std::string str;
+
+#if MODEL_VERSION == 3
+ #pragma db deleted(3)
+#endif
unsigned long num;
+
#endif
#endif
};