mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 05:22:13 +08:00
Merge pull request #9941 from dataease/pr@dev-v2@fix_cal
fix: 修复calcite解析SQL单引号报错
This commit is contained in:
@@ -7,7 +7,7 @@ import java.util.Optional;
|
||||
*/
|
||||
public class SQLUtils {
|
||||
public static String transKeyword(String value) {
|
||||
return Optional.ofNullable(value).orElse("").replaceAll("'", "\\\\'");
|
||||
return Optional.ofNullable(value).orElse("").replaceAll("'", "''");
|
||||
}
|
||||
|
||||
public static String buildOriginPreviewSql(String sql, int limit, int offset) {
|
||||
|
||||
Reference in New Issue
Block a user