aboutsummaryrefslogtreecommitdiff
path: root/src/backend/nodes/nodeFuncs.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2012-10-12 13:35:00 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2012-10-12 13:35:00 -0400
commita29f7ed5544ef583747c0dcc3fc2afac1fb191ef (patch)
tree5693033a5757722c757bcc22c8afb0e42c996a98 /src/backend/nodes/nodeFuncs.c
parent427fd88552c5ee6e239b776dfa763489251809bc (diff)
downloadpostgresql-a29f7ed5544ef583747c0dcc3fc2afac1fb191ef.tar.gz
postgresql-a29f7ed5544ef583747c0dcc3fc2afac1fb191ef.zip
Get rid of COERCE_DONTCARE.
We don't need this hack any more.
Diffstat (limited to 'src/backend/nodes/nodeFuncs.c')
-rw-r--r--src/backend/nodes/nodeFuncs.c5
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);
}
/*