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

Handle null JdbcMappingHint gracefully and improve SQL log formatting #1262

Merged
merged 3 commits into from
Jan 5, 2025

Conversation

nakamura-to
Copy link
Member

  • Implemented a check to handle null JdbcMappingHint in visitObjectWrapper method to prevent NullPointerExceptions.
  • Updated SQL log formatting to pass JdbcMappingHint for more detailed context in parameter evaluation and maintained backward compatibility with existing functionality.

Updated SQL log formatting to pass JdbcMappingHint instead of null, providing more detailed context during parameter evaluation. Deprecated methods in SqlLogFormattingVisitor were overridden for backward compatibility, ensuring seamless integration with existing functionality.
Previously, a null JdbcMappingHint could cause a NullPointerException. This fix introduces a check to ensure a default JdbcType is used if the hint is null, preventing potential runtime errors.
@nakamura-to nakamura-to merged commit 610113d into master Jan 5, 2025
13 checks passed
@nakamura-to nakamura-to deleted the refactor/wrapper-visitor branch January 5, 2025 02:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant