Skip to content

Commit e9e0f6d

Browse files
committed
Server:解决 MySQL 避免隐式转换后 json_contains 不兼容传数值
1 parent 38b09a8 commit e9e0f6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

APIJSON-Java-Server/APIJSONORM/src/main/java/zuo/biao/apijson/server/AbstractSQLConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1724,7 +1724,7 @@ public String getContainString(String key, Object[] childs, int type) throws Ill
17241724
+ getKey(key) + " @> " + getValue(newJSONArray(childs[i])); //operator does not exist: jsonb @> character varying "[" + childs[i] + "]");
17251725
} else {
17261726
condition += (i <= 0 ? "" : (Logic.isAnd(type) ? AND : OR))
1727-
+ "json_contains(" + getKey(key) + ", " + getValue(childs[i]) + ")";
1727+
+ "json_contains(" + getKey(key) + ", " + getValue(childs[i].toString()) + ")";
17281728
}
17291729
}
17301730
}

0 commit comments

Comments
 (0)