diff options
author | Constantin Michael <constantin@codesynthesis.com> | 2011-10-26 10:14:32 +0200 |
---|---|---|
committer | Constantin Michael <constantin@codesynthesis.com> | 2011-10-26 17:16:04 +0200 |
commit | 9f65908d7de63c151ff988105232cbf3c331a80d (patch) | |
tree | 6a5468c582b51c82bed89a89c007e533c9659812 | |
parent | c8465048b378c7e162ba8e00f0226a5a0ab5281b (diff) |
Use CLOB instead of TEXT for Oracle query test
-rw-r--r-- | common/query/test.hxx | 6 |
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") |