diff options
Diffstat (limited to 'kexi/kexidb/connection.cpp')
-rw-r--r-- | kexi/kexidb/connection.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kexi/kexidb/connection.cpp b/kexi/kexidb/connection.cpp index 776285e5..fbc93868 100644 --- a/kexi/kexidb/connection.cpp +++ b/kexi/kexidb/connection.cpp @@ -3227,6 +3227,10 @@ bool Connection::updateRow(QuerySchema &query, RowData& data, RowEditBuffer& buf setError(ERR_UPDATE_SERVER_ERROR, i18n("Row updating on the server failed.")); return false; } + + if (m_driver->beh->ROW_ID_FIELD_NAME == "xmin") + data[data.size()-1]=drv_lastInsertRowID(); + //success: now also assign new values in memory: TQMap<QueryColumnInfo*,int> columnsOrderExpanded; updateRowDataWithNewValues(query, data, b, columnsOrderExpanded); |