qt5base-lts/tests/auto/sql/models
Mark Brand 33c212b7d2 QSqlTableModel::setData(): fix non-change detection
Commit 10ff9de91b introduced the
optimization of ignoring non-changes, but it overshot the mark.
It neglected to consider that QVariant's equality operator does not
compare the null flag. It also failed to consider that setData() has
a useful side effect of setting the generated flag in a column of a
pending INSERT. This is important when the application actually wants
a NULL to be inserted into the column.

Task-number: QTBUG-29217
Change-Id: I1368f7acc21eebfeb5a8d23746fc38f6f30fd395
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Reviewed-by: Mark Brand <mabrand@mabrand.nl>
2013-02-06 07:57:28 +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::setData(): fix non-change detection 2013-02-06 07:57:28 +01:00
models.pro add and use qtHaveModule() function 2012-12-21 19:05:02 +01:00