public synchronized List<SplitSqlString> split(StringBuffer buffer, String sqlScript) {
        if (StringUtils.isBlank(sqlScript)) {
            return new ArrayList<>();
        }
        try {
            List<SplitSqlString> offsetStrings = new ArrayList<>();

            List<List<OrderChar>> lines = splitLine(sqlScript);
            Holder<Integer> bufferOrder = new Holder<>(0);
            int i = 0;
            for (List<OrderChar> item : lines) {
                if (Objects.nonNull(this.dialectType) && DbType.mysql.equals(this.dialectType)) {
                    addLineMysql(offsetStrings, buffer, bufferOrder, item);
                } else if (Objects.nonNull(this.dialectType) && DbType.mariadb.equals(this.dialectType)) {
                    addLineMysql(offsetStrings, buffer, bufferOrder, item);
                } else if (Objects.nonNull(this.dialectType) && DbType.oracle.equals(this.dialectType)) {
                    addLineOracle(offsetStrings, buffer, bufferOrder, item);
                } else if (Objects.nonNull(this.dialectType) && DbType.oceanbase.equals(this.dialectType)) {
                    addLineMysql(offsetStrings, buffer, bufferOrder, item);
                } else {
                    throw new IllegalArgumentException("dialect type is illegal");
                }
                i++;
            }
            return offsetStrings;
        } finally {
            mlComment = false;
            inString = '\0';
            inNormalSql = false;
        }
    }
remove all <code>\n</code> from sqls
chat2db-server/chat2db-spi/src/main/java/ai/chat2db/spi/util/SqlSplitProcessor.java