| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Convert a few more datatype input functions to report errors sof |
| Date: | 2022-12-14 18:22:16 |
| Message-ID: | E1p5WOV-003a0T-Pi@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Convert a few more datatype input functions to report errors softly.
Convert bit_in, varbit_in, inet_in, cidr_in, macaddr_in, and
macaddr8_in to the new style.
Amul Sul, minor mods by me
Discussion: https://postgr.es/m/CAAJ_b97KeDWUdpTKGOaFYPv0OicjOu6EW+QYWj-Ywrgj_aEy1g@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/17407a8eaa2afa8ac0de4b0a494f33d8eb7a98bd
Modified Files
--------------
src/backend/utils/adt/mac.c | 5 +--
src/backend/utils/adt/mac8.c | 65 +++++++++++++++-------------------
src/backend/utils/adt/network.c | 14 ++++----
src/backend/utils/adt/varbit.c | 20 +++++------
src/test/regress/expected/bit.out | 61 +++++++++++++++++++++++++++++++
src/test/regress/expected/inet.out | 37 +++++++++++++++++++
src/test/regress/expected/macaddr.out | 25 +++++++++++++
src/test/regress/expected/macaddr8.out | 25 +++++++++++++
src/test/regress/sql/bit.sql | 13 +++++++
src/test/regress/sql/inet.sql | 9 +++++
src/test/regress/sql/macaddr.sql | 6 ++++
src/test/regress/sql/macaddr8.sql | 6 ++++
12 files changed, 230 insertions(+), 56 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2022-12-14 21:10:40 | pgsql: Convert the geometric input functions to report errors softly. |
| Previous Message | Peter Eisentraut | 2022-12-14 15:14:42 | pgsql: Rearrange some static assertions for consistency |