Skip to content

Commit 3fc69f8

Browse files
fuziranxiaoaozz
authored andcommitted
修改sqlServer下的apijson_user.sql
1 parent aff4c01 commit 3fc69f8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4651,7 +4651,10 @@ public String gainContainString(String key, String column, Object[] childs, int
46514651
condition += (gainKey(column) + " @> " + gainValue(key, column, newJSONArray(c)));
46524652
// operator does not exist: jsonb @> character varying "[" + c + "]");
46534653
}
4654-
else if (isOracle() || isDameng() || isKingBaseOracle() || isKingBaseSQLServer()) {
4654+
else if (isKingBaseSQLServer()) {
4655+
condition += (gainKey(column) + "::jsonb @> " + gainValue(key, column, newJSONArray(c)) + "::jsonb");
4656+
}
4657+
else if (isOracle() || isDameng() || isKingBaseOracle()) {
46554658
condition += ("json_textcontains(" + gainKey(column) + ", " + (StringUtil.isEmpty(path, true)
46564659
? "'$'" : gainValue(key, column, path)) + ", " + gainValue(key, column, c == null ? null : c.toString()) + ")");
46574660
}

0 commit comments

Comments
 (0)