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

Convert errors during ComPrepare to SQLError #1363

Merged
merged 4 commits into from
Oct 31, 2022
Merged

Conversation

fulghum
Copy link
Contributor

@fulghum fulghum commented Oct 31, 2022

We were already converting errors in ComStmtExecute, ComMultiQuery, and ComQuery to SQLError so that the correct error codes would be sent to clients. This change adds that support to ComPrepare, too.

Added a unit test for that case and took the opportunity to simplify the interface for CastSQLError a little bit.

This change helps get Prisma support a little further along (dolthub/dolt#4511), but it doesn't look like it fully resolves everything Prisma needs to work with Dolt.

…w up for clients. Added unit test and simplified interface for CastSQLError.
@fulghum fulghum requested a review from zachmu October 31, 2022 19:45
@fulghum fulghum removed the request for review from zachmu October 31, 2022 20:33
@fulghum fulghum requested a review from zachmu October 31, 2022 21:19
Copy link
Member

@zachmu zachmu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@fulghum fulghum merged commit d8f3095 into main Oct 31, 2022
@Hydrocharged Hydrocharged deleted the fulghum/issue-4511 branch March 29, 2023 01:09
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.

2 participants