summaryrefslogtreecommitdiff
path: root/odb/relational/oracle/model.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-07-10 15:17:16 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-07-10 15:17:16 +0200
commitb8554760aa3a5c5697c77d11e507a2bb46dbf8e4 (patch)
tree3f2bcb28a59eb0d4cce4586acec4a8c639cde7e6 /odb/relational/oracle/model.cxx
parent1b64460a2b2c5411b6052cd4c4d8e8b0d46a4086 (diff)
Add support for custom database type mapping
New pragma qualifier, map, and specifiers: as, to, from. New tests: <database>/custom.
Diffstat (limited to 'odb/relational/oracle/model.cxx')
-rw-r--r--odb/relational/oracle/model.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/odb/relational/oracle/model.cxx b/odb/relational/oracle/model.cxx
index 4b874c8..5aa8e8d 100644
--- a/odb/relational/oracle/model.cxx
+++ b/odb/relational/oracle/model.cxx
@@ -28,7 +28,8 @@ namespace relational
{
// Make sure the column is mapped to Oracle NUMBER.
//
- if (parse_sql_type (column_type (), m).type != sql_type::NUMBER)
+ sql_type const& t (parse_sql_type (column_type (), m, false));
+ if (t.type != sql_type::NUMBER)
{
cerr << m.file () << ":" << m.line () << ":" << m.column ()
<< ": error: column with default value specified as C++ "