diff options
author | Marco Bubke <marco.bubke@qt.io> | 2022-07-20 22:52:25 +0200 |
---|---|---|
committer | Marco Bubke <marco.bubke@qt.io> | 2022-07-21 12:41:16 +0000 |
commit | a5d44fb32b7d66448d3b1a4f871957eff02107f5 (patch) | |
tree | 867a6aaafc4d8bcfc78d3185fe03a4dc8f0d12a9 /src/plugins/cppcheck/cppcheckdiagnosticsmodel.cpp | |
parent | 09b60ffec3963c1cc97a63eed925055bc37961a0 (diff) | |
download | qt-creator-a5d44fb32b7d66448d3b1a4f871957eff02107f5.tar.gz |
Sqlite: Generalize invalid id handling
An id is now always saved as a null value and a null value is always
converted to an invalid id if you are requesting an id. It prevents
accidental conversion of null values into a id with the value of zero.
It prevent too writing of the value -1 for an id. This has two
advantages. Sqlite can optimize null values if there are only null
values following in a row. And with strict tables it is forbidden to use
a null value as a key. So there can be no accidential invalid ids
anymore in the database.
Change-Id: I5ec813f2fe8e686324eab6dd632c03d5007e093d
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'src/plugins/cppcheck/cppcheckdiagnosticsmodel.cpp')
0 files changed, 0 insertions, 0 deletions