pgsql: Convert enum_in() to report errors softly.

Started by Tom Laneover 3 years ago1 messagescomitters
Jump to latest
#1Tom 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: /messages/by-id/CAAJ_b97KeDWUdpTKGOaFYPv0OicjOu6EW+QYWj-Ywrgj_aEy1g@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/442e25d2485b1ecf3357725acee995a1c349163d

Modified Files
--------------
src/backend/utils/adt/enum.c | 12 +++++++++---
src/test/regress/expected/enum.out | 25 +++++++++++++++++++++++++
src/test/regress/sql/enum.sql | 6 ++++++
3 files changed, 40 insertions(+), 3 deletions(-)