qt5base-lts/tests/auto
Mark Brand 7389c09637 QSqlTableModel::selectRow(): fix failure on uncached rows
This method was originally intended for refreshing rows after
submitting changes. It should also work for refreshing rows
that are unchanged (i.e., not cached), but did not because
constructing the primary values depended on the cache. As a
consequence, the WHERE clause for the query was not created.

Fixed by deriving primary values for uncached rows from the
query record. Note that the cache is still authoritative for rows
it holds. This is important because the prmary values there may
differ from the original query record due to changes to columns
of the primary key.

Includes new test.

Change-Id: I41cca2cbf26019d4b495ffa6d876e2b55ec57803
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Reviewed-by: Mark Brand <mabrand@mabrand.nl>
2012-09-24 21:27:51 +02:00
..
cmake Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
compilerwarnings/data Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
concurrent Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
corelib Test: Enabled tst_QFile::invalidFile 2012-09-24 21:27:51 +02:00
dbus Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
gui Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
guiapplauncher Update the documentation after moving examples. 2011-07-05 21:19:08 +02:00
network Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
opengl Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
other test: Remove QSKIP from tst_QFocusEvent::checkReason_ActiveWindow() 2012-09-22 23:40:02 +02:00
printsupport Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
shared Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
sql QSqlTableModel::selectRow(): fix failure on uncached rows 2012-09-24 21:27:51 +02:00
testlib Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
tools Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
widgets Implement viewOptions() logic in QListViewPrivate. 2012-09-24 18:01:07 +02:00
xml Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
auto.pro Test: Redo remove QSKIP from printsupport tests 2012-09-13 19:33:08 +02:00
network-settings.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
platformquirks.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
test.pl Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00