qt5base-lts/tests/auto/sql
Mark Brand a694b9f8d2 fix QSqlTableModel::headerData() for empty query with inserted row
QSqlQueryModel::headerData() relied on virtual indexInQuery() to
detect whether the requested column at row 0 mapped to an index in
the query. This failed when row 0 was a pending insert managed by
QSqlTableModel, and therefore not in the query.

The only thing that matters here is the column.

Task-number: QTBUG-29108
Change-Id: I3e0ae85ba223e444781ec8033386d394bb44f0e8
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Reviewed-by: Mark Brand <mabrand@mabrand.nl>
2013-02-06 07:57:13 +01:00
..
kernel QSqlError test: Fix isValid()-check for constructed QSqlError. 2013-02-04 14:44:19 +01:00
models fix QSqlTableModel::headerData() for empty query with inserted row 2013-02-06 07:57:13 +01:00
sql.pro Moved sql autotests into new directory structure 2011-09-06 09:32:15 +02:00