1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

Improve some messages

This commit is contained in:
Peter Eisentraut
2015-12-10 22:05:27 -05:00
parent 8b469bd7c4
commit a351705d8a
9 changed files with 12 additions and 12 deletions

View File

@ -3173,7 +3173,7 @@ select '[]'::jsonb - 'a';
select '"a"'::jsonb - 1; -- error
ERROR: cannot delete from scalar
select '{}'::jsonb - 1; -- error
ERROR: cannot delete from object using integer subscript
ERROR: cannot delete from object using integer index
select '[]'::jsonb - 1;
?column?
----------

View File

@ -39,7 +39,7 @@ CREATE TRANSFORM FOR int LANGUAGE SQL (
SELECT pg_get_object_address('stone', '{}', '{}');
ERROR: unrecognized object type "stone"
SELECT pg_get_object_address('table', '{}', '{}');
ERROR: name list must be of length at least 1
ERROR: name list length must be at least 1
SELECT pg_get_object_address('table', '{NULL}', '{}');
ERROR: name or argument lists may not contain nulls
-- unrecognized object types