mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 13:32:18 +08:00
fix: 空值联动异常
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
package io.dataease.engine.utils;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* @Author Junjun
|
||||
*/
|
||||
public class SQLUtils {
|
||||
public static String transKeyword(String value) {
|
||||
return value.replaceAll("'", "\\\\'");
|
||||
return Optional.ofNullable(value).orElse("").replaceAll("'", "\\\\'");
|
||||
}
|
||||
|
||||
public static String buildOriginPreviewSql(String sql, int limit, int offset) {
|
||||
|
||||
Reference in New Issue
Block a user