1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-03 15:22:11 +03:00

Message style improvements

This commit is contained in:
Peter Eisentraut
2021-09-16 14:48:52 +02:00
parent 7890a42347
commit f46dc96fcc
6 changed files with 17 additions and 22 deletions

View File

@@ -4822,10 +4822,10 @@ select ('[1, "2", null]'::jsonb)['1'];
(1 row)
select ('[1, "2", null]'::jsonb)[1.0];
ERROR: subscript type is not supported
ERROR: subscript type numeric is not supported
LINE 1: select ('[1, "2", null]'::jsonb)[1.0];
^
HINT: Jsonb subscript must be coerced to either integer or text
HINT: jsonb subscript must be coercible to either integer or text.
select ('[1, "2", null]'::jsonb)[2];
jsonb
-------