diff options
| author | Tom Lane | 2022-12-14 22:50:24 +0000 |
|---|---|---|
| committer | Tom Lane | 2022-12-14 22:50:24 +0000 |
| commit | 47f3f97fcdee28e3eb70cd2ebfd7b4899570b018 (patch) | |
| tree | 443f2edbb1c19fe1925f87f30e0edf66bc557b30 /src/test/regress/sql/xid.sql | |
| parent | 332741e73980401895e027eb697bb472860036fb (diff) | |
Convert a few more datatype input functions to report errors softly.
Convert assorted internal-ish datatypes, namely aclitemin,
int2vectorin, oidin, oidvectorin, pg_lsn_in, pg_snapshot_in,
and tidin to the new style.
(Some others you might expect to find in this group, such as
cidin and xidin, need no changes because they never throw
errors at all. That seems a little cheesy ... but it is not in
the charter of this patch series to add new error conditions.)
Amul Sul, minor mods by me
Discussion: https://postgr.es/m/CAAJ_b97KeDWUdpTKGOaFYPv0OicjOu6EW+QYWj-Ywrgj_aEy1g@mail.gmail.com
Diffstat (limited to 'src/test/regress/sql/xid.sql')
| -rw-r--r-- | src/test/regress/sql/xid.sql | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/regress/sql/xid.sql b/src/test/regress/sql/xid.sql index bee17e63643..2289803681b 100644 --- a/src/test/regress/sql/xid.sql +++ b/src/test/regress/sql/xid.sql @@ -68,6 +68,13 @@ select '0:1:'::pg_snapshot; select '12:13:0'::pg_snapshot; select '12:16:14,13'::pg_snapshot; +-- also try it with non-error-throwing API +select pg_input_is_valid('12:13:', 'pg_snapshot'); +select pg_input_is_valid('31:12:', 'pg_snapshot'); +select pg_input_error_message('31:12:', 'pg_snapshot'); +select pg_input_is_valid('12:16:14,13', 'pg_snapshot'); +select pg_input_error_message('12:16:14,13', 'pg_snapshot'); + create temp table snapshot_test ( nr integer, snap pg_snapshot |
