Skip to content

Commit 62677a6

Browse files
committed
1 parent ea3164a commit 62677a6

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ Please provide feedback on:
2222
* API changes: extend visitor with return values (https://github.com/JSQLParser/JSqlParser/issues/901)
2323

2424
## News
25-
* Released version **4.2** of JSqlParser
26-
* Released version **4.1** of JSqlParser
27-
* Released version **4.0** of JSqlParser
25+
* Released version **4.3** of JSqlParser
2826
* The array parsing is the default behaviour. Square bracket quotation has to be enabled using
2927
a parser flag (**CCJSqlParser.withSquareBracketQuotation**).
3028
* due to an API change the version will be 3.0
@@ -58,6 +56,9 @@ Also I would like to know about needed examples or documentation stuff.
5856

5957
* support for **timestamp with local time zone**
6058
* improved support for quoted identifiers in casts
59+
* support for **top with ties**
60+
* support for operators **<->** and **<#>**
61+
* improvement of test methods
6162

6263
Additionally, we have fixed many errors and improved the code quality and the test coverage.
6364

src/main/java/net/sf/jsqlparser/expression/operators/relational/GeometryDistance.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/*-
2+
* #%L
3+
* JSQLParser library
4+
* %%
5+
* Copyright (C) 2004 - 2022 JSQLParser
6+
* %%
7+
* Dual licensed under GNU LGPL 2.1 or Apache License 2.0
8+
* #L%
9+
*/
110
package net.sf.jsqlparser.expression.operators.relational;
211

312
import net.sf.jsqlparser.expression.ExpressionVisitor;

src/main/java/net/sf/jsqlparser/util/deparser/ExpressionDeParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1000,6 +1000,6 @@ public void visit(IsDistinctExpression isDistinctExpression) {
10001000

10011001
@Override
10021002
public void visit(GeometryDistance geometryDistance) {
1003-
visitOldOracleJoinBinaryExpression(geometryDistance, " <-> ");
1003+
visitOldOracleJoinBinaryExpression(geometryDistance, " " + geometryDistance.getStringExpression() + " ");
10041004
}
10051005
}

src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3112,8 +3112,8 @@ Expression RegularCondition() #RegularCondition:
31123112
| <OP_CONCAT> { result = new JsonOperator("||"); }
31133113
| "-" { result = new JsonOperator("-"); }
31143114
| "-#" { result = new JsonOperator("-#"); }
3115-
| <-> { result = new GeometryDistance("<->"); }
3116-
| <#> { result = new GeometryDistance("<#>"); }
3115+
| "<->" { result = new GeometryDistance("<->"); }
3116+
| "<#>" { result = new GeometryDistance("<#>"); }
31173117
)
31183118

31193119
( LOOKAHEAD(2) <K_PRIOR> rightExpression=ComparisonItem() { oraclePrior = EqualsTo.ORACLE_PRIOR_END; }

0 commit comments

Comments
 (0)