File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/main/java/org/nlpcn/es4sql/query Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 3
3
<modelVersion >4.0.0</modelVersion >
4
4
<groupId >org.nlpcn</groupId >
5
5
<artifactId >elasticsearch-sql</artifactId >
6
- <version >6.3.1.0 </version >
6
+ <version >6.3.1.1 </version >
7
7
<packaging >jar</packaging >
8
8
<description >Query elasticsearch using SQL</description >
9
9
<name >elasticsearch-sql</name >
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ private static SQLStatementParser createSqlStatementParser(String sql) {
126
126
127
127
private static boolean isJoin (SQLQueryExpr sqlExpr ,String sql ) {
128
128
MySqlSelectQueryBlock query = (MySqlSelectQueryBlock ) sqlExpr .getSubQuery ().getQuery ();
129
- return query .getFrom () instanceof SQLJoinTableSource && sql .toLowerCase ().contains ("join" );
129
+ return query .getFrom () instanceof SQLJoinTableSource && (( SQLJoinTableSource ) query . getFrom ()). getJoinType () != SQLJoinTableSource . JoinType . COMMA && sql .toLowerCase ().contains ("join" );
130
130
}
131
131
132
132
private static SQLExpr toSqlExpr (String sql ) {
You can’t perform that action at this time.
0 commit comments