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

Adding mapping to error code 1049 for ErrDatabaseNotFound errors #2511

Merged
merged 1 commit into from
May 23, 2024

Conversation

fulghum
Copy link
Contributor

@fulghum fulghum commented May 23, 2024

When a database doesn't exist, MySQL returns error code 1049. This change adds a mapping to error code 1049 for ErrDatabaseNotFound errors, and updates our handler so that ComInitDB messages will map errors to MySQL error codes.

This is needed because tooling (e.g. Pomelo EntityFramework MySQL library) can rely on this error code in application logic.

Related to dolthub/dolt#7890

…ping errors from ComInitDB to MySQL errors with error codes.

dolthub/dolt#7890
@fulghum fulghum requested a review from jycor May 23, 2024 20:40
Copy link
Contributor

@jycor jycor 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 38fb019 into main May 23, 2024
8 checks passed
@fulghum fulghum deleted the fulghum/dolt-7890 branch May 23, 2024 20:49
fulghum added a commit to dolthub/dolt that referenced this pull request May 23, 2024
fulghum added a commit to dolthub/dolt that referenced this pull request May 23, 2024
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.

None yet

2 participants