mirror of
https://github.com/postgres/postgres.git
synced 2025-12-10 14:22:35 +03:00
Improve the consistency of the error message emitted when rejecting
invalid input to the oid type. Also, remove some long-unused code from adt/numutils.c
This commit is contained in:
@@ -10,9 +10,9 @@ INSERT INTO OID_TBL(f1) VALUES ('99999999');
|
||||
INSERT INTO OID_TBL(f1) VALUES ('');
|
||||
-- bad inputs
|
||||
INSERT INTO OID_TBL(f1) VALUES ('asdfasd');
|
||||
ERROR: invalid input syntax for type "oid": "asdfasd"
|
||||
ERROR: invalid input syntax for type oid: "asdfasd"
|
||||
INSERT INTO OID_TBL(f1) VALUES ('99asdfasd');
|
||||
ERROR: invalid input syntax for type "oid": "99asdfasd"
|
||||
ERROR: invalid input syntax for type oid: "99asdfasd"
|
||||
SELECT '' AS six, OID_TBL.*;
|
||||
six | f1
|
||||
-----+------------
|
||||
|
||||
Reference in New Issue
Block a user