SQL: Fix OCI driver's compile errors.
Task-number: QTBUG-27979 Change-Id: I4ae4cdba855c05bc6fab0f845ff16a96c8119fdb Reviewed-by: Andy Shaw <andy.shaw@digia.com> Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com> Reviewed-by: Mark Brand <mabrand@mabrand.nl>
This commit is contained in:
parent
adf4e54742
commit
b98b11fa03
@ -82,7 +82,9 @@
|
||||
|
||||
//#define QOCI_DEBUG
|
||||
|
||||
Q_DECLARE_OPAQUE_POINTER(OCIEnv*);
|
||||
Q_DECLARE_METATYPE(OCIEnv*)
|
||||
Q_DECLARE_OPAQUE_POINTER(OCIStmt*);
|
||||
Q_DECLARE_METATYPE(OCIStmt*)
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
@ -2040,8 +2042,8 @@ QVariant QOCIResult::lastInsertId() const
|
||||
bool QOCIResult::execBatch(bool arrayBind)
|
||||
{
|
||||
QOCICols::execBatch(d, boundValues(), arrayBind);
|
||||
d->resetBindCount();
|
||||
return d->error.type() == QSqlError::NoError;
|
||||
resetBindCount();
|
||||
return lastError().type() == QSqlError::NoError;
|
||||
}
|
||||
|
||||
void QOCIResult::virtual_hook(int id, void *data)
|
||||
|
@ -132,10 +132,10 @@ protected:
|
||||
virtual void setNumericalPrecisionPolicy(QSql::NumericalPrecisionPolicy policy);
|
||||
QSql::NumericalPrecisionPolicy numericalPrecisionPolicy() const;
|
||||
virtual bool nextResult();
|
||||
void resetBindCount(); // HACK
|
||||
|
||||
private:
|
||||
QSqlResultPrivate* d;
|
||||
void resetBindCount(); // HACK
|
||||
|
||||
private:
|
||||
Q_DISABLE_COPY(QSqlResult)
|
||||
|
Loading…
Reference in New Issue
Block a user