summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBill King <bill.king@nokia.com>2009-04-19 23:47:10 (GMT)
committerBill King <bill.king@nokia.com>2009-04-19 23:47:10 (GMT)
commitbf0033ba01fec73c06d533b57b3920b216223c2d (patch)
treee9d767b92dc06557e8e0340a08221c1443bf2a44 /src
parent2cdbf9a9e53d67d4c2dd845c65aee17464f3dca1 (diff)
downloadQt-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.cpp4
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());