Re: BUG #17477: A crash bug in transformValuesClause()

Alvaro Herrera <alvherre@alvh.no-ip.org>

From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Masahiko Sawada <sawada.mshk@gmail.com>, krking@zju.edu.cn, pgsql-bugs@lists.postgresql.org
Date: 2022-05-09T20:55:06Z
Lists: pgsql-bugs
Looking at the code, I understand that what your patch is doing is
making the zeroth case no longer a special one but rather handled it in
the same loop block as the other cases, which is why the bug is fixed.
LGTM.

-- 
Álvaro Herrera         PostgreSQL Developer  —  https://www.EnterpriseDB.com/
"Ed is the standard text editor."
      http://groups.google.com/group/alt.religion.emacs/msg/8d94ddab6a9b0ad3



Commits

  1. Fix core dump in transformValuesClause when there are no columns.