diff options
author | Bill King <bking@trolltech.com> | 2009-07-02 04:59:14 (GMT) |
---|---|---|
committer | Bill King <bking@trolltech.com> | 2009-07-02 05:02:12 (GMT) |
commit | a24b8166631a9b1d80f8205cd0e450824166a25d (patch) | |
tree | 2dfcb29a1cfba126155cdc77fc5bd73f38d158f6 /src | |
parent | 35a4141f01ab9db910c85ccb89e76058aa3ac5cf (diff) | |
download | Qt-a24b8166631a9b1d80f8205cd0e450824166a25d.zip Qt-a24b8166631a9b1d80f8205cd0e450824166a25d.tar.gz Qt-a24b8166631a9b1d80f8205cd0e450824166a25d.tar.bz2 |
Get more autotests passing/fixed up.
Diffstat (limited to 'src')
-rw-r--r-- | src/sql/drivers/oci/qsql_oci.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/sql/drivers/oci/qsql_oci.cpp b/src/sql/drivers/oci/qsql_oci.cpp index bbbbc22..8d34dd8 100644 --- a/src/sql/drivers/oci/qsql_oci.cpp +++ b/src/sql/drivers/oci/qsql_oci.cpp @@ -1588,9 +1588,12 @@ void QOCICols::getValues(QVector<QVariant> &v, int index) } else if ((d->precisionPolicy == QSql::LowPrecisionInt64) && (fld.typ == QVariant::LongLong)) { qint64 qll = 0; - OCINumberToInt(d->err, reinterpret_cast<OCINumber *>(fld.data), sizeof(qint64), + int r = OCINumberToInt(d->err, reinterpret_cast<OCINumber *>(fld.data), sizeof(qint64), OCI_NUMBER_SIGNED, &qll); - v[index + i] = qll; + if(r == OCI_SUCCESS) + v[index + i] = qll; + else + v[index + i] = QVariant(); break; } else if ((d->precisionPolicy == QSql::LowPrecisionInt32) && (fld.typ == QVariant::Int)) { |