qt5base-lts/tests/auto/sql
Edward Welbourne ed0657b5e1 Avoid repeated qTableName() calls by saving in local variables
This saves repetition of the call in the midst of query strings.
This incidentally makes it possible to give informative names.

In the process, build those query strings using QLatin1String::arg(),
instead of implicitly converting ASCII strings to QString in order to
then do arithmetic with them, at least when the arithmetic involves
more than one addition. In one instance, where two branches did the
same thing with different format strings, limit the branching to
selecting which string to use, then do the common thing once.

Change-Id: I60fd7457a727bcc3872d3052d8fd638ebaf36ac2
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
2022-02-15 17:32:47 +01:00
..
kernel Avoid repeated qTableName() calls by saving in local variables 2022-02-15 17:32:47 +01:00
models QSqlTableModel::orderByClause(): Quote the table name 2021-05-03 14:10:36 +00:00
CMakeLists.txt Regenerate some of the test projects that do SUBDIRS += foo 2019-08-07 11:55:38 +00:00