mirror of
https://github.com/postgres/postgres.git
synced 2025-06-30 21:42:05 +03:00
Get rid of COERCE_DONTCARE.
We don't need this hack any more.
This commit is contained in:
@ -1572,7 +1572,7 @@ check_sql_fn_retval(Oid func_id, Oid rettype, List *queryTreeList,
|
||||
rettype,
|
||||
-1,
|
||||
get_typcollation(rettype),
|
||||
COERCE_DONTCARE);
|
||||
COERCE_IMPLICIT_CAST);
|
||||
/* Relabel is dangerous if TLE is a sort/group or setop column */
|
||||
if (tle->ressortgroupref != 0 || parse->setOperations)
|
||||
*modifyTargetList = true;
|
||||
@ -1618,7 +1618,7 @@ check_sql_fn_retval(Oid func_id, Oid rettype, List *queryTreeList,
|
||||
rettype,
|
||||
-1,
|
||||
get_typcollation(rettype),
|
||||
COERCE_DONTCARE);
|
||||
COERCE_IMPLICIT_CAST);
|
||||
/* Relabel is dangerous if sort/group or setop column */
|
||||
if (tle->ressortgroupref != 0 || parse->setOperations)
|
||||
*modifyTargetList = true;
|
||||
@ -1722,7 +1722,7 @@ check_sql_fn_retval(Oid func_id, Oid rettype, List *queryTreeList,
|
||||
atttype,
|
||||
-1,
|
||||
get_typcollation(atttype),
|
||||
COERCE_DONTCARE);
|
||||
COERCE_IMPLICIT_CAST);
|
||||
/* Relabel is dangerous if sort/group or setop column */
|
||||
if (tle->ressortgroupref != 0 || parse->setOperations)
|
||||
*modifyTargetList = true;
|
||||
|
Reference in New Issue
Block a user