forked from sqlitebrowser/sqlitebrowser
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix browsing tables without rowid and multiple primary key columns
This fixes a possible crash when browsing a table without a rowid column and with multiple columns in its primary key. To work with these tables we need to pretend it still has only one primary key column (as in the rowid case) and to do so we combine all the values of the primary key columns into a single value. For simplicity we were using the JSON library (which we are using anyway in the project) to achieve this, however this turned out to be problematic for some values. This commit introduced a new, more robust approach to combine multiple values into a single value. See issue sqlitebrowser#2832.
- Loading branch information
1 parent
a302128
commit 0b1ff64
Showing
2 changed files
with
10 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters