aboutsummaryrefslogtreecommitdiff
path: root/libcommon/common/common.cxx
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-10-17 09:13:48 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-10-21 13:29:03 +0200
commit8295852a42e7dc178ee9cf94df746a85dda48b05 (patch)
tree16088da2d70a2326b08d6d7fc90eb8392c1aa5b6 /libcommon/common/common.cxx
parentbdeee8eabc02e01f57c2fc43415ef8813ed69814 (diff)
Add Oracle create_database code allowing for specification of character sets
Diffstat (limited to 'libcommon/common/common.cxx')
-rw-r--r--libcommon/common/common.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/libcommon/common/common.cxx b/libcommon/common/common.cxx
index d09c14b..c4cc667 100644
--- a/libcommon/common/common.cxx
+++ b/libcommon/common/common.cxx
@@ -49,8 +49,16 @@ create_database (int& argc,
char* argv[],
#if defined(DATABASE_SQLITE)
bool schema,
+ unsigned short,
+ unsigned short,
+#elif defined(DATABASE_ORACLE)
+ bool,
+ unsigned short charset,
+ unsigned short ncharset,
#else
bool,
+ unsigned short,
+ unsigned short,
#endif
size_t max_connections)
{
@@ -120,7 +128,7 @@ create_database (int& argc,
if (max_connections != 0)
f.reset (new oracle::connection_pool_factory (max_connections));
- db.reset (new oracle::database (argc, argv, false, 0, f));
+ db.reset (new oracle::database (argc, argv, false, charset, ncharset, 0, f));
#endif
return db;