diff options
author | Bill King <bill.king@nokia.com> | 2009-04-19 23:47:10 (GMT) |
---|---|---|
committer | Bill King <bill.king@nokia.com> | 2009-04-19 23:47:10 (GMT) |
commit | bf0033ba01fec73c06d533b57b3920b216223c2d (patch) | |
tree | e9d767b92dc06557e8e0340a08221c1443bf2a44 /src | |
parent | 2cdbf9a9e53d67d4c2dd845c65aee17464f3dca1 (diff) | |
download | Qt-bf0033ba01fec73c06d533b57b3920b216223c2d.zip Qt-bf0033ba01fec73c06d533b57b3920b216223c2d.tar.gz Qt-bf0033ba01fec73c06d533b57b3920b216223c2d.tar.bz2 |
Fixes over-verboseness in OCI tables function.
Differring case of username shouldn't mean adding the username on front.
Also fixes autotest failures.
Diffstat (limited to 'src')
-rw-r--r-- | src/sql/drivers/oci/qsql_oci.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sql/drivers/oci/qsql_oci.cpp b/src/sql/drivers/oci/qsql_oci.cpp index fa9b5f0..d63c482 100644 --- a/src/sql/drivers/oci/qsql_oci.cpp +++ b/src/sql/drivers/oci/qsql_oci.cpp @@ -2208,7 +2208,7 @@ QStringList QOCIDriver::tables(QSql::TableType type) const user = user.toUpper(); while (t.next()) { - if (t.value(0).toString() != user) + if (t.value(0).toString().toUpper() != user.toUpper()) tl.append(t.value(0).toString() + QLatin1String(".") + t.value(1).toString()); else tl.append(t.value(1).toString()); @@ -2224,7 +2224,7 @@ QStringList QOCIDriver::tables(QSql::TableType type) const "and owner != 'CTXSYS'" "and owner != 'WMSYS'")); while (t.next()) { - if (t.value(0).toString() != d->user) + if (t.value(0).toString().toUpper() != d->user.toUpper()) tl.append(t.value(0).toString() + QLatin1String(".") + t.value(1).toString()); else tl.append(t.value(1).toString()); |