Convert enum_in() to report errors softly.
Tom Lane <tgl@sss.pgh.pa.us>
Convert enum_in() to report errors softly. I missed this in my initial survey, probably because I examined the contents of pg_type in the postgres database, which lacks any enumerated types. Discussion: https://postgr.es/m/CAAJ_b97KeDWUdpTKGOaFYPv0OicjOu6EW+QYWj-Ywrgj_aEy1g@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/enum.c | modified | +9 −3 |
| src/test/regress/expected/enum.out | modified | +25 −0 |
| src/test/regress/sql/enum.sql | modified | +6 −0 |
Discussion
- Error-safe user functions 175 messages · 2022-10-03 → 2023-01-03