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

MySQL storage should not return SQL-specific errors #2341

Open
pav-kv opened this issue Feb 8, 2021 · 1 comment
Open

MySQL storage should not return SQL-specific errors #2341

pav-kv opened this issue Feb 8, 2021 · 1 comment
Labels

Comments

@pav-kv
Copy link
Contributor

pav-kv commented Feb 8, 2021

The are conditions under which SQL-specific errors slip all the way to the client.

Example of what this can cause: #2340, reproduced in #2342.

We should either allow this in storage APIs, or fix MySQL implementation to wrap these errors into "generic" ones.

@pav-kv pav-kv self-assigned this Feb 8, 2021
@pav-kv
Copy link
Contributor Author

pav-kv commented Feb 8, 2021

Go's database/sql can return inconsistent errors on context cancelation: https://go.googlesource.com/go/+/go1.15.8/src/database/sql/sql.go#2144

@pav-kv pav-kv removed their assignment Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants