Best place to start implementing OVERLAPS? #1600
-
I'm trying to implement OVERLAPS, which looks like this:
I think the OverlapsCondition would look like this: However, I find it a bit difficult to find the right place to implement this in, because it is a bit of a different type than regular operators, like <, > etc. I currently think the best place is in:
Where it would be a 3th branch next to the
However, I'm not really sure about this approach. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Ok while that works for my simple use-case, I looked it up in the sql2003 standard: There it is: Where
And
And
Which makes sense. So I tried to refactor to:
But the
Any hints? |
Beta Was this translation helpful? Give feedback.
-
As far as I do understand JSQLParser, our best match for
Please refer to JSQLParser/src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt:3580 |
Beta Was this translation helpful? Give feedback.
As far as I do understand JSQLParser, our best match for
<row value constructor predicand>
wasExpression
.I think you are looking for something like:
Please refer to JSQLParser/src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt:3580
Alternatively JSQLParser/src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt:3595