Skip to content

Commit 76b4760

Browse files
author
Nikita Glukhov
committed
Remove COERCE_INTERNAL_CAST in SQL/JSON constructors
1 parent fe6eb36 commit 76b4760

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/parser/parse_expr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3926,7 +3926,7 @@ coerceJsonFuncExpr(ParseState *pstate, Node *expr,
39263926
FuncExpr *fexpr = makeFuncExpr(F_PG_CONVERT_TO, BYTEAOID,
39273927
list_make2(texpr, enc),
39283928
InvalidOid, InvalidOid,
3929-
COERCE_INTERNAL_CAST);
3929+
COERCE_EXPLICIT_CALL);
39303930
fexpr->location = location;
39313931

39323932
return (Node *) fexpr;
@@ -3937,7 +3937,7 @@ coerceJsonFuncExpr(ParseState *pstate, Node *expr,
39373937
returning->typid, returning->typmod,
39383938
/* XXX throwing errors when casting to char(N) */
39393939
COERCION_EXPLICIT,
3940-
COERCE_INTERNAL_CAST,
3940+
COERCE_EXPLICIT_CAST,
39413941
location);
39423942

39433943
if (!res && report_error)

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