Skip to content

Commit

Permalink
Move parser to new package
Browse files Browse the repository at this point in the history
  • Loading branch information
zhicwu committed Nov 28, 2021
1 parent 81cf79c commit 1b4b1d3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import com.clickhouse.client.data.JsonStreamUtils;
import com.clickhouse.client.logging.Logger;
import com.clickhouse.client.logging.LoggerFactory;
import com.clickhouse.jdbc.parser.ClickHouseSqlParser;
import com.clickhouse.jdbc.parser.ClickHouseSqlStatement;
import com.clickhouse.jdbc.parser.StatementType;

Expand All @@ -47,7 +48,6 @@
import ru.yandex.clickhouse.domain.ClickHouseFormat;
import ru.yandex.clickhouse.except.ClickHouseException;
import ru.yandex.clickhouse.except.ClickHouseExceptionSpecifier;
import ru.yandex.clickhouse.jdbc.parser.ClickHouseSqlParser;
import ru.yandex.clickhouse.response.ClickHouseLZ4Stream;
import ru.yandex.clickhouse.response.ClickHouseResponse;
import ru.yandex.clickhouse.response.ClickHouseResponseSummary;
Expand Down Expand Up @@ -170,7 +170,7 @@ protected void setLastStatement(ClickHouseSqlStatement stmt) {
}

protected ClickHouseSqlStatement[] parseSqlStatements(String sql) throws SQLException {
parsedStmts = ClickHouseSqlParser.parse(sql, properties);
parsedStmts = ClickHouseSqlParser.parse(sql, null);

if (parsedStmts == null || parsedStmts.length == 0) {
// should never happen
Expand Down Expand Up @@ -578,7 +578,7 @@ public int getResultSetType() throws SQLException {

@Override
public void addBatch(String sql) throws SQLException {
for (ClickHouseSqlStatement s : ClickHouseSqlParser.parse(sql, properties)) {
for (ClickHouseSqlStatement s : ClickHouseSqlParser.parse(sql, null)) {
this.batchStmts.add(s);
}
}
Expand Down

0 comments on commit 1b4b1d3

Please sign in to comment.