JSQLParser / JSqlParser

JSqlParser parses an SQL statement and translate it into a hierarchy of Java classes. The generated hierarchy can be navigated using the Visitor Pattern
https://github.com/JSQLParser/JSqlParser/wiki
Apache License 2.0
5.39k stars 1.34k forks source link

add an expression to join on #1827

Closed zhujianwei-star closed 1 year ago

zhujianwei-star commented 1 year ago

Now, I will add an expression to join on, i should use function to get a collections of expresssions, but i can not add an expression to join on by add an expressions to the collections, because It will rely on the ON keyword and the result will be an error when executed in mysql. I wish it can rely on the AND keyword. image

manticore-projects commented 1 year ago

Greetings.

1) Create an AndExpression from two EqualsTo Expressions 2) Assign this AndExpression to the Join.onExpression