Skip to content

Throw InvalidSqlException during rendering if an In condition is empty #833

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

Merged
merged 2 commits into from
Aug 9, 2024

Conversation

jeffgbutler
Copy link
Member

This changes the prior behavior where the condition would render as invalid SQL and a runtime exception from the database was expected.

This changes the prior behavior where the condition would render as invalid SQL and a runtime exception from the database was expected.
@jeffgbutler jeffgbutler added this to the 2.0.0 milestone Aug 9, 2024
@coveralls
Copy link

Coverage Status

coverage: 100.0%. remained the same
when pulling f036631 on jeffgbutler:empty-list-exception
into 68cadc5 on mybatis:master.

@jeffgbutler jeffgbutler merged commit 6e6e225 into mybatis:master Aug 9, 2024
7 checks passed
@jeffgbutler jeffgbutler deleted the empty-list-exception branch August 9, 2024 14:01
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