summaryrefslogtreecommitdiff
path: root/json.sql.in
diff options
context:
space:
mode:
authorJoey Adams2010-07-14 04:37:27 +0000
committerJoey Adams2010-07-14 04:37:27 +0000
commit6580672c67a36b841663f7eb490d1eb8f965513f (patch)
tree0566b38d1d9ecf30e3a66d4f26da4636a3d04f17 /json.sql.in
parent37abdca05c02fe9bb913c663b02fc9e6caf99d44 (diff)
Oops, set json_get to return json before implementing it that way. Reverted.
Diffstat (limited to 'json.sql.in')
-rw-r--r--json.sql.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/json.sql.in b/json.sql.in
index 17b30ca..08c3c9a 100644
--- a/json.sql.in
+++ b/json.sql.in
@@ -60,12 +60,12 @@ AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; -- not STRICT; allows to_json(NULL) to return 'null'::json.
CREATE OR REPLACE FUNCTION json_get(json, json_path text)
-RETURNS json
+RETURNS text
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT IMMUTABLE;
/*
CREATE OR REPLACE FUNCTION json_set(json, json_path text, text)
-RETURNS json
+RETURNS text
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT IMMUTABLE;
*/