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

ENH: Add eqIfPresent() - a helper expression for fluid style when some EQ are optional #2768

Closed
rbygrave opened this issue Aug 1, 2022 · 0 comments
Assignees
Milestone

Comments

@rbygrave
Copy link
Member

rbygrave commented Aug 1, 2022

This is effectively a helper method / expression for the case where we want to add EQUAL TO expression/predicate but only when the passed value is non-null / present.

This is similar to the exising inOrEmpty() expression but for EQUAL TO rather than IN.

See also:
DatabaseConfig.setExpressionEqualsWithNullAsNoop(boolean)

@rbygrave rbygrave self-assigned this Aug 1, 2022
rbygrave added a commit that referenced this issue Aug 1, 2022
@rbygrave rbygrave added this to the 13.6.6 milestone Aug 1, 2022
@rbygrave rbygrave closed this as completed Aug 1, 2022
rbygrave added a commit that referenced this issue Feb 22, 2023
ENH: Add _ifPresent() expressions for GT, GE, LT, LE (follow up from #2768)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant