qt5base-lts/tests/auto/sql/models
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
..
qsqlquerymodel QSql tests: Remove Windows CE and clean up code. 2016-03-10 15:07:02 +00:00
qsqlrelationaldelegate Show the display role inside the editor for the relation in a QComboBox 2018-05-29 22:08:28 +00:00
qsqlrelationaltablemodel Always escape the table names when creating the SQL statement 2019-01-23 20:07:09 +00:00
qsqltablemodel Always escape the table names when creating the SQL statement 2019-01-23 20:07:09 +00:00
models.pro add and use qtHaveModule() function 2012-12-21 19:05:02 +01:00