Skip to content

Commit

Permalink
SQLParserUtils.splitAndRemoveComment(sql, com.alibaba.druid.DbType.xugu)
Browse files Browse the repository at this point in the history
  • Loading branch information
lh xg committed Feb 19, 2024
1 parent bf18dd0 commit c1b7ee9
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import java.util.List;
import java.util.Map;

import com.alibaba.druid.sql.parser.SQLParserUtils;
import com.google.auto.service.AutoService;

@AutoService(DataSourceProcessor.class)
Expand All @@ -48,7 +49,7 @@ public BaseDataSourceParamDTO castDatasourceParamDTO(String paramJson) {
}

@Override
public BaseDataSourceParamDTO createDatasourceParamDTO(String connectionJson) throws NumberFormatException{
public BaseDataSourceParamDTO createDatasourceParamDTO(String connectionJson){
XuguConnectionParam connectionParams = (XuguConnectionParam) createConnectionParams(connectionJson);
XuguDataSourceParamDTO xuguDataSourceParamDTO = new XuguDataSourceParamDTO();

Expand Down Expand Up @@ -129,6 +130,11 @@ public DataSourceProcessor create() {
return new XuguDataSourceProcessor();
}

@Override
public List<String> splitAndRemoveComment(String sql) {
return SQLParserUtils.splitAndRemoveComment(sql, com.alibaba.druid.DbType.xugu);
}

private String transformOther(Map<String, String> paramMap) {
if (MapUtils.isEmpty(paramMap)) {
return null;
Expand Down

0 comments on commit c1b7ee9

Please sign in to comment.