mirror of
https://github.com/postgres/postgres.git
synced 2025-11-06 07:49:08 +03:00
Clean up a few failures to set collation fields in expression nodes.
I'm not sure these have any non-cosmetic implications, but I'm not sure they don't, either. In particular, ensure the CaseTestExpr generated by transformAssignmentIndirection to represent the base target column carries the correct collation, because parse_collate.c won't fix that. Tweak lsyscache.c API so that we can get the appropriate collation without an extra syscache lookup.
This commit is contained in:
@@ -1816,7 +1816,7 @@ CommuteOpExpr(OpExpr *clause)
|
||||
*/
|
||||
clause->opno = opoid;
|
||||
clause->opfuncid = InvalidOid;
|
||||
/* opresulttype and opretset are assumed not to change */
|
||||
/* opresulttype, opretset, opcollid, inputcollid need not change */
|
||||
|
||||
temp = linitial(clause->args);
|
||||
linitial(clause->args) = lsecond(clause->args);
|
||||
|
||||
Reference in New Issue
Block a user