mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-08-02 04:43:35 +08:00
fix columnType error
This commit is contained in:
@ -128,10 +128,12 @@ public class SqlUtils {
|
||||
public static List<String> parse(String sql, DbType dbType, boolean removeComment) {
|
||||
List<String> list = new ArrayList<>();
|
||||
try {
|
||||
|
||||
if (StringUtils.isBlank(sql)) {
|
||||
return list;
|
||||
}
|
||||
if (removeComment) {
|
||||
sql = SQLParserUtils.removeComment(sql, dbType);
|
||||
}
|
||||
try {
|
||||
if (DbType.oracle.equals(dbType)) {
|
||||
SqlSplitter sqlSplitter = new SqlSplitter(PlSqlLexer.class, ";", false);
|
||||
@ -154,9 +156,6 @@ public class SqlUtils {
|
||||
} catch (Exception e) {
|
||||
log.error("sqlSplitProcessor error", e);
|
||||
}
|
||||
if (removeComment) {
|
||||
sql = SQLParserUtils.removeComment(sql, dbType);
|
||||
}
|
||||
// sql = removeDelimiter(sql);
|
||||
if (StringUtils.isBlank(sql)) {
|
||||
return list;
|
||||
|
Reference in New Issue
Block a user