From a58e630b61c19eac8f0c0d931825b42eeb7ea16b Mon Sep 17 00:00:00 2001 From: Mark Brand Date: Wed, 8 Feb 2012 00:16:46 +0100 Subject: QSqlTableModel::setRecord(): improve handling of field mapping -Only use fields where generated flag is set to true. -Require all fields to map correctly. If fields don't map, that is a sign of a programming or user error. Change-Id: Ie8474393005de6c9926b4e46985d62b194eafde2 Reviewed-by: Yunqiao Yin --- dist/changes-5.0.0 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'dist') diff --git a/dist/changes-5.0.0 b/dist/changes-5.0.0 index d2e8dde9de..996bdf4b0b 100644 --- a/dist/changes-5.0.0 +++ b/dist/changes-5.0.0 @@ -350,6 +350,11 @@ model methods setData() or setRecord(). before doing anything. Previously, it would remove what it could and ignore the rest of the range. +* setRecord() and insertRecord() + -Only use fields where generated flag is set to true. This is + is consistent with the meaning of the flag. + -Require all fields to map correctly. Previously fields that didn't + map were simply ignored. **************************************************************************** * Database Drivers * -- cgit v1.2.3