diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2022-05-09 14:15:37 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2022-05-09 14:15:37 -0400 |
commit | ab2f783921734a96aa1baf4f3ea165292b62aecf (patch) | |
tree | b25c9865668c278d6936902fbdf2ee02606f70a2 /src/backend/utils/adt/regexp.c | |
parent | 9b5797ca54f5ad74740220c1be070eda4c21c82c (diff) | |
download | postgresql-ab2f783921734a96aa1baf4f3ea165292b62aecf.tar.gz postgresql-ab2f783921734a96aa1baf4f3ea165292b62aecf.zip |
Fix core dump in transformValuesClause when there are no columns.
The parser code that transformed VALUES from row-oriented to
column-oriented lists failed if there were zero columns.
You can't write that straightforwardly (though probably you
should be able to), but the case can be reached by expanding
a "tab.*" reference to a zero-column table.
Per bug #17477 from Wang Ke. Back-patch to all supported branches.
Discussion: https://postgr.es/m/17477-0af3c6ac6b0a6ae0@postgresql.org
Diffstat (limited to 'src/backend/utils/adt/regexp.c')
0 files changed, 0 insertions, 0 deletions