diff options
author | Constantin Michael <constantin@codesynthesis.com> | 2011-10-26 10:05:25 +0200 |
---|---|---|
committer | Constantin Michael <constantin@codesynthesis.com> | 2011-10-26 17:15:52 +0200 |
commit | 1f14eecfed1303d5d7bf5febcba29e06c2d19d9e (patch) | |
tree | 08e5cdfc1392df9519d9079b0abac0d3a6c3f7b8 /common/default | |
parent | 82c04419fe56ef491c40a02c316338bfc380787f (diff) |
Quote schema object identifiers for Oracle where necessary
Oracle converts all alphabetical characters in unquoted schema object
identifiers to uppercase. This behaviour cannot be disabled.
Diffstat (limited to 'common/default')
-rw-r--r-- | common/default/driver.cxx | 6 |
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 (); } |