aboutsummaryrefslogtreecommitdiff
path: root/common/query
diff options
context:
space:
mode:
Diffstat (limited to 'common/query')
-rw-r--r--common/query/test.hxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/common/query/test.hxx b/common/query/test.hxx
index 21acb84..74f5f73 100644
--- a/common/query/test.hxx
+++ b/common/query/test.hxx
@@ -11,6 +11,7 @@
#include <iostream>
#include <odb/core.hxx>
+#include <common/config.hxx> // DATABASE_XXX
#pragma db object
struct person
@@ -37,8 +38,11 @@ struct person
#pragma db column ("first")
std::string first_name_;
-
+#ifndef DATABASE_ORACLE
#pragma db column ("middle") type ("TEXT") null
+#else
+ #pragma db column ("middle") type ("CLOB") null
+#endif
std::auto_ptr<std::string> middle_name_;
#pragma db column ("last")