New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Committed data is lost silently. #3619
Comments
This is a first time someone reports such problem. |
After running SQLiteStudio with --debug options, I now have a logfile, and can completely reproduce the issue: It's unfortunately again caused by SQLiteStudio trying to be smarter than the database... :( I think the SQL-part of SQLiteStudio would need a complete redesign to really solve all these bugs. SQLiteStudio uses an invalid ROWID when committing data:
Example database-dump:
SQLiteStudio debug output:
The -1283634412 is wrong here. |
Thank you for the reproduction steps. Actually it won't require "complete redesign". It looks like relatively simple bug. I managed to reproduce it, so it will surely be fixed. Thanks! |
Thanks. This bug alone does not require a SQL-layer redesign. But since it's at least the 5th bug, which results from the same SQLiteStudio-SQL-layer flaw, and since "trying to be smarter than the database" and "guessing values" is never a good idea, I guess that there are quite some more bugs because of this flaw; and the cleanest way to solve them would be to redesign the SQLiteStudio-SQL-layer by doing no "SQL-optimizing" stuff, and simply directly committing the data to the database and directly asking the database for the data. |
I know it all seams very simple and easy when looking from outside. What about editing results of complex query with joins and subqueries? Would you rather refuse it? Bugs are natural outcome of software development. If particular project can effort dedicated testers and time for developers - they get fixed sooner and software becomes better overall. I simply don't have as much time as I used to. I honestly do hope I will have more time again in some near future, because I did not let this project go yet. I like working on it. Lastly but not leastly, this particular bug reported above is not related to SQL pre-processing at all. Editing data for simple table (not query results) does not use pre-processing. |
Details
If you enter some data manually into SQLiteStudio and click the commit-button, the data sometimes is silently lost by SQLiteStudio: SQLiteStudio still shows the data, but the data was not committed to the database and disappears after a "refresh".
Maybe this only happens when adding new rows, and maybe only with automatically generated unique ids, but I have not checked this in detail.
Workarounds:
Steps to reproduce
SQLiteStudio version
3.2.1
The text was updated successfully, but these errors were encountered: