summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorRobert Haas2014-08-05 16:26:25 +0000
committerRobert Haas2014-08-05 16:28:57 +0000
commit0ef99bdce3a6cd3195d7df12093042c16328c71c (patch)
treef0f1913889488df4a8dff1448a512a360bf95105 /src/test
parentee646df59ae76d14f76e6fd305c1f9f2eeafd682 (diff)
Improve some JSON error messages.
These messages are new in 9.4, which hasn't been released yet, so back-patch to REL9_4_STABLE. Daniele Varrazzo
Diffstat (limited to 'src/test')
-rw-r--r--src/test/regress/expected/json.out3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/regress/expected/json.out b/src/test/regress/expected/json.out
index de4d49d5b2d..511b6e15139 100644
--- a/src/test/regress/expected/json.out
+++ b/src/test/regress/expected/json.out
@@ -1150,7 +1150,8 @@ SELECT json_build_object(1,2);
-- keys must be scalar and not null
SELECT json_build_object(null,2);
-ERROR: arg 1: key cannot be null
+ERROR: argument 1 cannot be null
+HINT: Object keys should be text.
SELECT json_build_object(r,2) FROM (SELECT 1 AS a, 2 AS b) r;
ERROR: key value must be scalar, not array, composite, or json
SELECT json_build_object(json '{"a":1,"b":2}', 3);