aboutsummaryrefslogtreecommitdiff
path: root/common/default/driver.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'common/default/driver.cxx')
-rw-r--r--common/default/driver.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/default/driver.cxx b/common/default/driver.cxx
index 846619b..5fef85c 100644
--- a/common/default/driver.cxx
+++ b/common/default/driver.cxx
@@ -14,6 +14,7 @@
#include <odb/transaction.hxx>
#include <common/common.hxx>
+#include <common/config.hxx> // DATABASE_XXX
#include "test.hxx"
#include "test-odb.hxx"
@@ -33,7 +34,12 @@ main (int argc, char* argv[])
//
{
transaction t (db->begin ());
+
+#ifndef DATABASE_ORACLE
db->execute ("INSERT INTO default_object (obj_id) VALUES (1)");
+#else
+ db->execute ("INSERT INTO \"default_object\" (\"obj_id\") VALUES (1)");
+#endif
t.commit ();
}