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

refactor: improve logging for unimplemented ErrorTranslator in TranlateError config enabled #7225

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Invidam
Copy link

@Invidam Invidam commented Oct 6, 2024

  • Do only one thing
  • Non breaking API changes
  • Tested
    • test if the dummyDialector has no Translate(), occur warning log. (in TestDialectorWithErrorTranslatorSupport())

What did this pull request do?

If the user's config conficts with db driver's dialector implementation, a warning log will be generate to heldy identify the issue.

User Case Description

I enable TranslateError config as true, but my MySQL DB driver (version:1.4.7) doesn't implement Transalte() method.
Therefore, I had trouble identifying this situation. I think log information is necessary.

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