aboutsummaryrefslogtreecommitdiff
path: root/common/erase-query/driver.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-10-24 16:38:31 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-10-24 16:38:31 +0200
commit69f67b942a1dd30a38d79743220c73be0c382852 (patch)
tree5cf6279d74771ef4a1e4af149ec09a9ecaf845b9 /common/erase-query/driver.cxx
parent3a951b92f1a4da2779b503e15130663429ca0d6d (diff)
Enable ON DELETE CASCADE-based checks for MySQL
Now that we generate proper foreign keys for containers.
Diffstat (limited to 'common/erase-query/driver.cxx')
-rw-r--r--common/erase-query/driver.cxx6
1 files changed, 0 insertions, 6 deletions
diff --git a/common/erase-query/driver.cxx b/common/erase-query/driver.cxx
index 0b2d7f5..40290ec 100644
--- a/common/erase-query/driver.cxx
+++ b/common/erase-query/driver.cxx
@@ -13,7 +13,6 @@
#include <odb/database.hxx>
#include <odb/transaction.hxx>
-#include <common/config.hxx> // @@ DATABASE_MYSQL
#include <common/common.hxx>
#include "test.hxx"
@@ -156,17 +155,12 @@ main (int argc, char* argv[])
t.commit ();
}
- // @@ Temporarily disabled until we have out-of-line constraints
- // in MySQL (coming with evolution support).
- //
-#ifndef DATABASE_MYSQL
{
transaction t (db->begin ());
assert (db->execute ("SELECT * FROM erase_query_object_v "
"WHERE object_id = 1") == 0);
t.commit ();
}
-#endif
}
catch (const odb::exception& e)
{