Fix psql_schemas test
Ignore case when comparing table names in PostgreSQL Task-number: QTBUG-63861 Change-Id: Iaf56dff11ee79f96fd3b136e1576f2578328ac79 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
parent
870423f98b
commit
d1422da264
@ -1248,7 +1248,7 @@ void tst_QSqlDatabase::psql_schemas()
|
||||
QString table = schemaName + '.' + qTableName("qtesttable", __FILE__, db);
|
||||
QVERIFY_SQL(q, exec("CREATE TABLE " + table + " (id int primary key, name varchar(20))"));
|
||||
|
||||
QVERIFY(db.tables().contains(table));
|
||||
QVERIFY(db.tables().contains(table, Qt::CaseInsensitive));
|
||||
|
||||
QSqlRecord rec = db.record(table);
|
||||
QCOMPARE(rec.count(), 2);
|
||||
|
Loading…
Reference in New Issue
Block a user