1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-14 08:21:07 +03:00

Fix alternate regression test output file.

Commit 930e8ad738 broke this.

Jeff Janes
This commit is contained in:
Robert Haas
2014-08-06 11:18:38 -04:00
parent cf6a9c3742
commit dc431f4167

View File

@ -1146,7 +1146,8 @@ SELECT json_build_object(1,2);
-- keys must be scalar and not null -- keys must be scalar and not null
SELECT json_build_object(null,2); 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; 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 ERROR: key value must be scalar, not array, composite, or json
SELECT json_build_object(json '{"a":1,"b":2}', 3); SELECT json_build_object(json '{"a":1,"b":2}', 3);