Don't crash on empty statements in SQL-standard function bodies.
Tom Lane <tgl@sss.pgh.pa.us>
Don't crash on empty statements in SQL-standard function bodies. gram.y should discard NULL pointers (empty statements) when assembling a routine_body_stmt_list, as it does for other sorts of statement lists. Julien Rouhaud and Tom Lane, per report from Noah Misch. Discussion: https://postgr.es/m/20210606044418.GA297923@rfd.leadboat.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/parser/gram.y | modified | +5 −1 |
| src/test/regress/expected/create_function_3.out | modified | +1 −1 |
| src/test/regress/sql/create_function_3.sql | modified | +1 −1 |
Discussion
- SQL-standard function body 91 messages · 2020-06-30 → 2021-06-08