Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit76b4760

Browse files
author
Nikita Glukhov
committed
Remove COERCE_INTERNAL_CAST in SQL/JSON constructors
1 parentfe6eb36 commit76b4760

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)

[8]ページ先頭

©2009-2025 Movatter.jp