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

SQLite: Make foreign key errors on txn commit visible to app. #2933

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

kentonv
Copy link
Member

@kentonv kentonv commented Oct 15, 2024

I noticed the test was testing for an "internal error", which is always a bug, and implies that in prod an error would have been logged to Sentry. We can make this throw an application-visible error instead. This also makes the test output look less bad.

@kentonv kentonv requested a review from geelen October 15, 2024 19:26
@kentonv kentonv requested review from a team as code owners October 15, 2024 19:26
@kentonv kentonv requested review from dom96 and mar-cf October 15, 2024 19:26
I noticed the test was testing for an "internal error", which is always a bug, and implies that in prod an error would have been logged to Sentry. We can make this throw an application-visible error instead. This also makes the test output look less bad.
@kentonv kentonv force-pushed the kenton/sqlite-foreign-constraint branch from 8eea488 to bcda208 Compare October 15, 2024 19:44
@kentonv kentonv merged commit 19e1596 into main Oct 17, 2024
13 checks passed
@kentonv kentonv deleted the kenton/sqlite-foreign-constraint branch October 17, 2024 14:33
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.

4 participants