Skip to content

Commit c085ab5

Browse files
committed
@raw 原始 SQL 片段默认支持 & | ^ ~ &= >> 等位运算
1 parent 0e947d2 commit c085ab5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

APIJSONORM/src/main/java/apijson/orm/AbstractSQLConfig.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,16 @@ public abstract class AbstractSQLConfig<T extends Object> implements SQLConfig<T
216216
RAW_MAP.put("(", "");
217217
RAW_MAP.put(")", "");
218218

219+
RAW_MAP.put("&", ""); // 位运算
220+
RAW_MAP.put("|", ""); // 位运算
221+
RAW_MAP.put("^", ""); // 位运算
222+
RAW_MAP.put("~", ""); // 位运算
223+
RAW_MAP.put("&=", ""); // 位运算
224+
RAW_MAP.put("|=", ""); // 位运算
225+
RAW_MAP.put("~=", ""); // 位运算
226+
RAW_MAP.put(">>", ""); // 位运算
227+
RAW_MAP.put("<<", ""); // 位运算
228+
219229
// MySQL 关键字
220230
RAW_MAP.put("AS", "");
221231
RAW_MAP.put("IS NOT NULL", "");

0 commit comments

Comments
 (0)