Skip to content
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

Error recovery for string-in-boolean field in DB #767

Merged
merged 5 commits into from
Aug 6, 2023

Conversation

matty0ung
Copy link
Contributor

Fix src/database/ObjectStore.cpp so that it can recover from the case where it finds a "true" or "false" string in a table field where it was expecting a boolean (or actually a 0 or 1, since SQLite doesn't have native booleans).

I'm not sure how we end up with a string in a boolean field, but it can happen -- see #766. Given that we can automatically recover (provided the string holds something sane), we should.

I've tested this locally by manually modifying my DB but, as ever, any corrections or comments are welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant