Use unique table name for the sqlite_enableRegexp test
This change amends 2a3297c726
.
Task-number: QTBUG-59317
Change-Id: Ia08b83785f67105a1c7e71c1f4081f1bc755d756
Reviewed-by: Liang Qi <liang.qi@qt.io>
This commit is contained in:
parent
dfef2e3f3e
commit
9292ea17a0
@ -348,7 +348,8 @@ void tst_QSqlDatabase::dropTestTables(QSqlDatabase db)
|
||||
<< qTableName("qtest_sqlguid", __FILE__, db)
|
||||
<< qTableName("uint_table", __FILE__, db)
|
||||
<< qTableName("uint_test", __FILE__, db)
|
||||
<< qTableName("bug_249059", __FILE__, db);
|
||||
<< qTableName("bug_249059", __FILE__, db)
|
||||
<< qTableName("regexp_test", __FILE__, db);
|
||||
|
||||
QSqlQuery q(0, db);
|
||||
if (dbType == QSqlDriver::PostgreSQL) {
|
||||
@ -2275,7 +2276,7 @@ void tst_QSqlDatabase::sqlite_enableRegexp()
|
||||
QVERIFY_SQL(db, open());
|
||||
|
||||
QSqlQuery q(db);
|
||||
const QString tableName(qTableName("uint_test", __FILE__, db));
|
||||
const QString tableName(qTableName("regexp_test", __FILE__, db));
|
||||
QVERIFY_SQL(q, exec(QString("CREATE TABLE %1(text TEXT)").arg(tableName)));
|
||||
QVERIFY_SQL(q, prepare(QString("INSERT INTO %1 VALUES(?)").arg(tableName)));
|
||||
q.addBindValue("a0");
|
||||
|
Loading…
Reference in New Issue
Block a user