diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2012-10-12 13:35:00 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2012-10-12 13:35:00 -0400 |
commit | a29f7ed5544ef583747c0dcc3fc2afac1fb191ef (patch) | |
tree | 5693033a5757722c757bcc22c8afb0e42c996a98 /src/backend/optimizer/util | |
parent | 427fd88552c5ee6e239b776dfa763489251809bc (diff) | |
download | postgresql-a29f7ed5544ef583747c0dcc3fc2afac1fb191ef.tar.gz postgresql-a29f7ed5544ef583747c0dcc3fc2afac1fb191ef.zip |
Get rid of COERCE_DONTCARE.
We don't need this hack any more.
Diffstat (limited to 'src/backend/optimizer/util')
-rw-r--r-- | src/backend/optimizer/util/clauses.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/optimizer/util/clauses.c b/src/backend/optimizer/util/clauses.c index 5894dd39c17..d5d3afe6000 100644 --- a/src/backend/optimizer/util/clauses.c +++ b/src/backend/optimizer/util/clauses.c @@ -2789,7 +2789,7 @@ eval_const_expressions_mutator(Node *node, relabel->resulttype = exprType(arg); relabel->resulttypmod = exprTypmod(arg); relabel->resultcollid = collate->collOid; - relabel->relabelformat = COERCE_DONTCARE; + relabel->relabelformat = COERCE_IMPLICIT_CAST; relabel->location = collate->location; /* Don't create stacked RelabelTypes */ @@ -3625,7 +3625,7 @@ simplify_function(Oid funcid, Oid result_type, int32 result_typmod, fexpr.funcid = funcid; fexpr.funcresulttype = result_type; fexpr.funcretset = func_form->proretset; - fexpr.funcformat = COERCE_DONTCARE; + fexpr.funcformat = COERCE_EXPLICIT_CALL; fexpr.funccollid = result_collid; fexpr.inputcollid = input_collid; fexpr.args = args; @@ -3959,7 +3959,7 @@ evaluate_function(Oid funcid, Oid result_type, int32 result_typmod, newexpr->funcid = funcid; newexpr->funcresulttype = result_type; newexpr->funcretset = false; - newexpr->funcformat = COERCE_DONTCARE; /* doesn't matter */ + newexpr->funcformat = COERCE_EXPLICIT_CALL; /* doesn't matter */ newexpr->funccollid = result_collid; /* doesn't matter */ newexpr->inputcollid = input_collid; newexpr->args = args; @@ -4089,7 +4089,7 @@ inline_function(Oid funcid, Oid result_type, Oid result_collid, fexpr->funcid = funcid; fexpr->funcresulttype = result_type; fexpr->funcretset = false; - fexpr->funcformat = COERCE_DONTCARE; /* doesn't matter */ + fexpr->funcformat = COERCE_EXPLICIT_CALL; /* doesn't matter */ fexpr->funccollid = result_collid; /* doesn't matter */ fexpr->inputcollid = input_collid; fexpr->args = args; |