aboutsummaryrefslogtreecommitdiff
path: root/common/default
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-08-24 17:13:55 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-08-24 17:13:55 +0200
commitff3950866c0f756a5b6f379b9f95f01fff4a9ec7 (patch)
tree1171b1c1ecd9cffc5022d34d8d411846b98adf09 /common/default
parent1fca8273447e0048941bbfe8ca23466f103c42f3 (diff)
Make tests use unique table prefixes
Diffstat (limited to 'common/default')
-rw-r--r--common/default/driver.cxx2
-rw-r--r--common/default/makefile2
2 files changed, 2 insertions, 2 deletions
diff --git a/common/default/driver.cxx b/common/default/driver.cxx
index 32c1923..a47051c 100644
--- a/common/default/driver.cxx
+++ b/common/default/driver.cxx
@@ -33,7 +33,7 @@ main (int argc, char* argv[])
//
{
transaction t (db->begin ());
- db->execute ("INSERT INTO object (obj_id) VALUES (1)");
+ db->execute ("INSERT INTO common_default_object (obj_id) VALUES (1)");
t.commit ();
}
diff --git a/common/default/makefile b/common/default/makefile
index fd77d01..ce5f9e9 100644
--- a/common/default/makefile
+++ b/common/default/makefile
@@ -36,7 +36,7 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
---generate-query
+--generate-query --table-prefix common_default_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)