Skip to content

Commit

Permalink
@raw 原始 SQL 片段默认支持 & | ^ ~ &= >> 等位运算
Browse files Browse the repository at this point in the history
  • Loading branch information
TommyLemon committed Nov 12, 2023
1 parent 0e947d2 commit c085ab5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions APIJSONORM/src/main/java/apijson/orm/AbstractSQLConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,16 @@ public abstract class AbstractSQLConfig<T extends Object> implements SQLConfig<T
RAW_MAP.put("(", "");
RAW_MAP.put(")", "");

RAW_MAP.put("&", ""); // 位运算
RAW_MAP.put("|", ""); // 位运算
RAW_MAP.put("^", ""); // 位运算
RAW_MAP.put("~", ""); // 位运算
RAW_MAP.put("&=", ""); // 位运算
RAW_MAP.put("|=", ""); // 位运算
RAW_MAP.put("~=", ""); // 位运算
RAW_MAP.put(">>", ""); // 位运算
RAW_MAP.put("<<", ""); // 位运算

// MySQL 关键字
RAW_MAP.put("AS", "");
RAW_MAP.put("IS NOT NULL", "");
Expand Down

0 comments on commit c085ab5

Please sign in to comment.