diff options
Diffstat (limited to 'odb/oracle/database.ixx')
-rw-r--r-- | odb/oracle/database.ixx | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/odb/oracle/database.ixx b/odb/oracle/database.ixx new file mode 100644 index 0000000..763ff90 --- /dev/null +++ b/odb/oracle/database.ixx @@ -0,0 +1,20 @@ +// file : odb/oracle/database.ixx +// author : Constantin Michael <constantin@codesynthesis.com> +// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC +// license : ODB NCUEL; see accompanying LICENSE file + +namespace odb +{ + namespace oracle + { + inline connection_ptr database:: + connection () + { + // Go through the virtual connection_() function instead of + // directly to allow overriding. + // + return connection_ptr ( + static_cast<oracle::connection*> (connection_ ())); + } + } +} |