summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Ehrlicher <ch.ehrlicher@gmx.de>2023-01-07 14:05:42 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-01-20 15:20:35 +0000
commitbb6fba1834bc3c41a45a198aadd668b8fa58952c (patch)
tree629197c88c97da8fd2c4853a81074526a154080a
parent312912b3a0ed59eaff6337c27840c23e6f2c0540 (diff)
SQL tests: Fix for PostgreSQL 12 and above
The 'WITH OIDS' was deprecated some time ago and removed with PostgreSQL 12 so we have to adjust our test table creations. Don't know why it was used in the first place at all. Change-Id: I6e18ac01e64368b1dd64e02bcb75fa70e05467a3 Reviewed-by: Dimitrios Apostolou <jimis@qt.io> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit 87662bcf107e65c04f933f212f4c8cad6692f948) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--tests/auto/sql/kernel/qsqlquery/tst_qsqlquery.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/sql/kernel/qsqlquery/tst_qsqlquery.cpp b/tests/auto/sql/kernel/qsqlquery/tst_qsqlquery.cpp
index 3088b65b2f..e8735e772d 100644
--- a/tests/auto/sql/kernel/qsqlquery/tst_qsqlquery.cpp
+++ b/tests/auto/sql/kernel/qsqlquery/tst_qsqlquery.cpp
@@ -407,7 +407,7 @@ void tst_QSqlQuery::createTestTables(QSqlDatabase db)
if (dbType == QSqlDriver::PostgreSQL) {
QVERIFY_SQL(q, exec(QLatin1String(
"create table %1 (id serial NOT NULL, t_varchar varchar(20), "
- "t_char char(20), primary key(id)) WITH OIDS").arg(qtest)));
+ "t_char char(20), primary key(id))").arg(qtest)));
} else {
QVERIFY_SQL(q, exec(QLatin1String(
"create table %1 (id int %2 NOT NULL, t_varchar varchar(20), "