Fix crash in assign_collations_walker for EXISTS with empty SELECT list.
Tom Lane <tgl@sss.pgh.pa.us>
Fix crash in assign_collations_walker for EXISTS with empty SELECT list. We (I think I, actually) forgot about this corner case while coding collation resolution. Per bug #8648 from Arjen Nienhuis.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/parser/parse_collate.c | modified | +8 −2 |
| src/test/regress/expected/subselect.out | modified | +10 −0 |
| src/test/regress/sql/subselect.sql | modified | +6 −0 |