[#5955] Support OVERLAPS predicate
This commit is contained in:
parent
fdfbda7222
commit
24a2471a02
@ -280,6 +280,7 @@ import org.jooq.Queries;
|
||||
import org.jooq.Query;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.Record;
|
||||
import org.jooq.Row2;
|
||||
import org.jooq.RowN;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
@ -1859,6 +1860,9 @@ class ParserImpl implements Parser {
|
||||
? ((Field) left).notLike(right)
|
||||
: ((Field) left).like(right);
|
||||
}
|
||||
else if (left instanceof RowN && ((RowN) left).size() == 2 && parseKeywordIf(ctx, "OVERLAPS")) {
|
||||
return ((Row2) left).overlaps((Row2) parseRow(ctx, 2));
|
||||
}
|
||||
else
|
||||
return left;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user