profile
viewpoint

Ask questionsWrong rows are selected for some tables

<!-- Please fill the requested information before pressing Submit. Thanks for coming here to report a bug. :)

Please describe it in the sections below, fill out the correct check boxes with an "x", replacing the space inside [ ], then click the "Submit new issue" button at the bottom -->

Details for the issue

What did you do?

I created a database with a single table using

CREATE TABLE data (
    key BLOB NOT NULL PRIMARY KEY,
    value BLOB NOT NULL
) WITHOUT ROWID"

I then inserted a row with key having type BLOB (not using the GUI).

What did you expect to see?

I should be able, using the GUI, to delete or modify the row that I inserted.

What did you see instead?

A a not existing (wrong) row is selected for deletion and other modifications. I think because DB4S uses TEXT instead of BLOB to select it.

Edit: Note that at first it does look like DB4S makes the correct modifications. Only after saving and reloading the database it becomes clear that it didn't.

Useful extra information

  • A database that has this issue: db.zip
  • https://github.com/sqlitebrowser/sqlitebrowser/issues/2582 could be related but I think the fix doesn't apply to this particular issue.

What is your DB4S version?

  • [x] 3.12.2

Did you also

  • [x] Try out the latest nightly version: https://github.com/sqlitebrowser/sqlitebrowser#nightly-builds
  • [x] Search for an existing similar issue: https://github.com/sqlitebrowser/sqlitebrowser/issues?utf8=%E2%9C%93&q=is%3Aissue%20
sqlitebrowser/sqlitebrowser

Answer questions mgrojo

I've made some improvements, that you could try in the next nightly build, but take the comments in 6510bb104e3ec4c7419cc5558166920e75ec4046 into account, because if the value inserted as BLOB in the key can be taken as text data, DB Browser is confused and the operation still doesn't work. We have to figure out how to pass the actual value type to the code preparing the SQL statement.

useful!
source:https://uonfu.com/
Github User Rank List