Skip to content

Commit 5c3082b

Browse files
author
Nikita Glukhov
committed
Fix const-ness warnings
1 parent 9e55182 commit 5c3082b

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy