diff options
Diffstat (limited to 'src/backend/nodes/nodeFuncs.c')
-rw-r--r-- | src/backend/nodes/nodeFuncs.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/backend/nodes/nodeFuncs.c b/src/backend/nodes/nodeFuncs.c index b130902dcf2..c52f4ed6ca8 100644 --- a/src/backend/nodes/nodeFuncs.c +++ b/src/backend/nodes/nodeFuncs.c @@ -554,8 +554,7 @@ exprIsLengthCoercion(const Node *expr, int32 *coercedTypmod) * * This is primarily intended to be used during planning. Therefore, it * strips any existing RelabelType nodes to maintain the planner's invariant - * that there are not adjacent RelabelTypes, and it uses COERCE_DONTCARE - * which would typically be inappropriate earlier. + * that there are not adjacent RelabelTypes. */ Node * relabel_to_typmod(Node *expr, int32 typmod) @@ -569,7 +568,7 @@ relabel_to_typmod(Node *expr, int32 typmod) /* Apply new typmod, preserving the previous exposed type and collation */ return (Node *) makeRelabelType((Expr *) expr, type, typmod, coll, - COERCE_DONTCARE); + COERCE_EXPLICIT_CAST); } /* |