aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/oracle/connection.cxx9
-rw-r--r--odb/oracle/error.cxx2
-rw-r--r--odb/oracle/statement.cxx2
3 files changed, 7 insertions, 6 deletions
diff --git a/odb/oracle/connection.cxx b/odb/oracle/connection.cxx
index bc77dfc..dc37a07 100644
--- a/odb/oracle/connection.cxx
+++ b/odb/oracle/connection.cxx
@@ -62,7 +62,7 @@ namespace odb
r = OCIAttrSet (
auth_info,
OCI_HTYPE_AUTHINFO,
- reinterpret_cast<text*> (const_cast<char*> (db_.user ().c_str ())),
+ reinterpret_cast<OraText*> (const_cast<char*> (db_.user ().c_str ())),
static_cast <ub4> (db_.user ().size ()),
OCI_ATTR_USERNAME,
error_);
@@ -73,7 +73,8 @@ namespace odb
r = OCIAttrSet (
auth_info,
OCI_HTYPE_AUTHINFO,
- reinterpret_cast<text*> (const_cast<char*> (db_.password ().c_str ())),
+ reinterpret_cast<OraText*> (
+ const_cast<char*> (db_.password ().c_str ())),
static_cast<ub4> (db_.password ().size ()),
OCI_ATTR_PASSWORD,
error_);
@@ -89,7 +90,7 @@ namespace odb
error_,
&s,
auth_info,
- reinterpret_cast<text*> (const_cast<char*> (db_.db ().c_str ())),
+ reinterpret_cast<OraText*> (const_cast<char*> (db_.db ().c_str ())),
static_cast<ub4> (db_.db ().size ()),
0,
0,
@@ -160,7 +161,7 @@ namespace odb
r = OCIStmtPrepare2 (handle_,
&s,
error_,
- reinterpret_cast<const text*> (sql.c_str ()),
+ reinterpret_cast<const OraText*> (sql.c_str ()),
static_cast<ub4> (sql.size ()),
0,
0,
diff --git a/odb/oracle/error.cxx b/odb/oracle/error.cxx
index 900e3d9..d848b1a 100644
--- a/odb/oracle/error.cxx
+++ b/odb/oracle/error.cxx
@@ -35,7 +35,7 @@ namespace odb
1,
0,
&e,
- reinterpret_cast<text*> (b.data ()),
+ reinterpret_cast<OraText*> (b.data ()),
b.capacity (),
t) == OCI_ERROR;
diff --git a/odb/oracle/statement.cxx b/odb/oracle/statement.cxx
index 642e928..0dab835 100644
--- a/odb/oracle/statement.cxx
+++ b/odb/oracle/statement.cxx
@@ -143,7 +143,7 @@ namespace odb
sword r (OCIStmtPrepare2 (conn_.handle (),
&handle,
err,
- reinterpret_cast<const text*> (s.c_str ()),
+ reinterpret_cast<const OraText*> (s.c_str ()),
static_cast<ub4> (s.size ()),
0,
0,