qt5base-lts/tests/auto/sql/kernel
Andy Shaw 461ef575bc Always escape the table names when creating the SQL statement
Since some databases are case sensitive if part of the query is quoted,
then we should ensure that all instances of the table name are escaped
unless the test is delibrately testing the non-escaped case.

As a result, this commit also removes some expected failures pertaining
to PostgreSQL and also adds an entry to the list of tables being dropped
when a test is finished.

[ChangeLog][Sql][PostgreSQL] QSqlDatabase is now stricter about table
names when used with record() and primaryIndex(). If the tablename was
not quoted when it was created, then the table name passed to record()
and primaryIndex() needs to be in lower case so that PostgreSQL is
able to find it.

Fixes: QTBUG-65788
Change-Id: Id1f54cb66b761c39edf858501b730ede7eec1fd3
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2019-01-23 20:07:09 +00:00
..
qsql tst_qsql.cpp: Remove deprecated module include 2016-11-25 09:55:21 +00:00
qsqldatabase Always escape the table names when creating the SQL statement 2019-01-23 20:07:09 +00:00
qsqldriver SQL PostgreSQL/SQlite: Properly decode default varchar parameter 2018-09-12 09:11:04 +00:00
qsqlerror Add move special member functions to QSqlError 2017-04-28 12:50:34 +00:00
qsqlfield QSqlField: Add a means to see what the tablename is for a given field 2017-07-12 09:01:50 +00:00
qsqlquery Always escape the table names when creating the SQL statement 2019-01-23 20:07:09 +00:00
qsqlrecord QSqlField: Add a means to see what the tablename is for a given field 2017-07-12 09:01:50 +00:00
qsqlresult prune cargo-culted and obsolete winsock deps from autotests 2018-07-19 13:31:08 +00:00
qsqlthread tst_QSqlThread: match #if-ery on declaration to use 2018-07-05 13:39:02 +00:00
kernel.pro