1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-08 11:42:09 +03:00

Get rid of COERCE_DONTCARE.

We don't need this hack any more.
This commit is contained in:
Tom Lane
2012-10-12 13:35:00 -04:00
parent 427fd88552
commit a29f7ed554
7 changed files with 16 additions and 18 deletions
src
backend
include

@ -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);
}
/*