Hi Zsolt and Jian,
Zsolt, thanks for testing. Those are the cases I had in mind. With v1
on current master both queries return f and t, the same as master. The
PASSING cases from the report are still fixed.
Jian, thanks for the v2. With assign_expr_collations() on every part,
an explicit COLLATE in DEFAULT no longer reaches the result. That is
what changes those two queries. v1 only takes PASSING out and keeps
DEFAULT in the result like the branches of a CASE, so I would suggest
v1.
Thanks,
Shihao