Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit d3150b7

Browse files
author
Nikita Glukhov
committed
Fix const-ness warnings
1 parent dff4f66 commit d3150b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/utils/adt/jsonpath_exec.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1821,7 +1821,7 @@ executeLikeRegex(JsonPathItem *jsp, JsonbValue *str, JsonbValue *rarg,
18211821
cxt->cflags = jspConvertRegexFlags(jsp->content.like_regex.flags);
18221822
}
18231823

1824-
if (RE_compile_and_execute(cxt->regex, str->val.string.val,
1824+
if (RE_compile_and_execute(cxt->regex, unconstify(char *, str->val.string.val),
18251825
str->val.string.len,
18261826
cxt->cflags, DEFAULT_COLLATION_OID, 0, NULL))
18271827
return jpbTrue;

0 commit comments

Comments
 (0)