Skip to content

Add Support for "exists"and "not exists" in "where" Clauses #296

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 32 commits into from
Dec 2, 2020

Conversation

jeffgbutler
Copy link
Member

This turned out to be a fairly substantial change. Previously the where support assumed that criteria were always column based. With this enhancement, "exists" and "not exists" can be used in where clauses for any statement and can be nested with "ands" and "ors" as per natural SQL.

This enhancement is compatible with existing code at the source level.

# Conflicts:
#	src/main/java/org/mybatis/dynamic/sql/delete/DeleteDSL.java
#	src/main/java/org/mybatis/dynamic/sql/select/CountDSL.java
#	src/main/java/org/mybatis/dynamic/sql/select/QueryExpressionDSL.java
#	src/main/java/org/mybatis/dynamic/sql/update/UpdateDSL.java
Factor common where methods out of the DSL classes. THis will allow for an
easier implementation of future where support such as "exists".

� Conflicts:
�	src/main/java/org/mybatis/dynamic/sql/delete/DeleteDSL.java
�	src/main/java/org/mybatis/dynamic/sql/select/CountDSL.java
�	src/main/java/org/mybatis/dynamic/sql/select/QueryExpressionDSL.java
�	src/main/java/org/mybatis/dynamic/sql/update/UpdateDSL.java
…ts-infrastructure

# Conflicts:
#	src/main/java/org/mybatis/dynamic/sql/select/AbstractQueryExpressionDSL.java
#	src/main/java/org/mybatis/dynamic/sql/select/QueryExpressionDSL.java
#	src/main/java/org/mybatis/dynamic/sql/where/AbstractWhereSupport.java
@jeffgbutler jeffgbutler added this to the 1.3.0 milestone Dec 1, 2020
@jeffgbutler jeffgbutler merged commit 48a428e into mybatis:master Dec 2, 2020
@jeffgbutler jeffgbutler deleted the exists-infrastructure branch December 2, 2020 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant