Content-Length: 259622 | pFad | http://github.com/postgrespro/postgres/commit/d3150b7fc8ac1105cb87e2ee158ec5be492c5d35

CF Fix const-ness warnings · postgrespro/postgres@d3150b7 · GitHub
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

Lines changed: 1 addition & 1 deletion
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/d3150b7fc8ac1105cb87e2ee158ec5be492c5d35

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy