summaryrefslogtreecommitdiffstats
path: root/src/plugins/sqldrivers/oci/qsql_oci.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/sqldrivers/oci/qsql_oci.cpp')
-rw-r--r--src/plugins/sqldrivers/oci/qsql_oci.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/sqldrivers/oci/qsql_oci.cpp b/src/plugins/sqldrivers/oci/qsql_oci.cpp
index 9af1342e5b6..a800e0f3c7b 100644
--- a/src/plugins/sqldrivers/oci/qsql_oci.cpp
+++ b/src/plugins/sqldrivers/oci/qsql_oci.cpp
@@ -418,7 +418,7 @@ int QOCIResultPrivate::bindValue(OCIStmt *sql, OCIBind **hbnd, OCIError *err, in
if (res->internal_prepare()) {
r = OCIBindByPos(sql, hbnd, err,
pos + 1,
- const_cast<OCIStmt **>(&res->d->sql),
+ const_cast<OCIStmt **>(&res->d_ptr->sql),
(sb4)0,
SQLT_RSET, indPtr, 0, 0, 0, 0, OCI_DEFAULT);
@@ -1913,7 +1913,7 @@ int QOCIResult::numRowsAffected()
return rowCount;
}
-+bool QOCIResult::internal_prepare()
+bool QOCIResult::internal_prepare()
{
Q_D(QOCIResult);
int r = 0;
@@ -1958,6 +1958,7 @@ bool QOCIResult::prepare(const QString& query)
int r;
const OraText *txt = reinterpret_cast<const OraText *>(query.utf16());
const int len = query.length() * sizeof(QChar);
+ Q_D(QOCIResult);
r = OCIStmtPrepare(d->sql,
d->err,
txt,
@@ -2016,7 +2017,7 @@ bool QOCIResult::exec()
return false;
}
- if (!isCursor()) {
+ if (!isCursor) {
// execute
r = OCIStmtExecute(d->svc,
d->sql,