qt6-bb10/tests/auto/sql/models
Mark Brand c3ae1c76f3 QSqlTableModel: support refreshing inserted rows with auto columns
Previously, selectRow() did not work after INSERTing a new row into a
table with an automatically populated column. It did not work because
the model did not know the primary values for the new row. Newly
inserted rows were therefore not refreshed in OnFieldChange and
OnRowChange edit strategies.

This change provides support for the typical simple case where a single
column is populated by the database and can be retrieved with
QSqlQuery::lastInsertId().

Task-Number: QTBUG-29102
Change-Id: Ibf0f0ac8661185bde57034ddf40c2178bece4778
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Reviewed-by: Lukas Geyer <lgeyer@gmx.at>
Reviewed-by: Mark Brand <mabrand@mabrand.nl>
2013-02-06 07:57:47 +01:00
..
qsqlquerymodel Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qsqlrelationaltablemodel Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qsqltablemodel QSqlTableModel: support refreshing inserted rows with auto columns 2013-02-06 07:57:47 +01:00
models.pro add and use qtHaveModule() function 2012-12-21 19:05:02 +01:00