public inbox for [email protected]
help / color / mirror / Atom feedFrom: Marti Raudsepp <[email protected]>
To: pgsql-docs <[email protected]>
Cc: Andrew Dunstan <[email protected]>
Subject: [PATCH] Fix discrepancy in hstore_to_json_loose documentation
Date: Wed, 10 Apr 2013 15:36:43 +0300
Message-ID: <CABRT9RDkfbquJTH5s1JKyBQDOwy9eHMD8bmi40eFmBZWWJetjw@mail.gmail.com> (raw)
List-Unsubscribe: <mailto:[email protected]?body=unsub%20pgsql-docs>
Hi list,
I was checking out the new JSON features coming in 9.3, really cool stuff!
I noticed a small discrepancy in the documentation, the
"hstore_to_json_loose" example uses hstore_to_json() by accident.
Patch attached.
Regards,
Marti
--
Sent via pgsql-docs mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs
Attachments:
[application/octet-stream] 0001-Fix-discrepancy-in-hstore_to_json_loose-documentatio.patch (1.3K, 2-0001-Fix-discrepancy-in-hstore_to_json_loose-documentatio.patch)
download | inline diff:
From 2982773e9aaabf04ff6cc2e181f0842df1ce53a6 Mon Sep 17 00:00:00 2001
From: Marti Raudsepp <[email protected]>
Date: Wed, 10 Apr 2013 15:34:44 +0300
Subject: [PATCH] Fix discrepancy in hstore_to_json_loose documentation
The example code uses hstore_to_json() by accident.
Marti Raudsepp
---
doc/src/sgml/hstore.sgml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/src/sgml/hstore.sgml b/doc/src/sgml/hstore.sgml
index 85e7efc..b20108d 100644
--- a/doc/src/sgml/hstore.sgml
+++ b/doc/src/sgml/hstore.sgml
@@ -334,7 +334,7 @@ b
<entry><function>hstore_to_json_loose(hstore)</function></entry>
<entry><type>json</type></entry>
<entry>get <type>hstore</type> as a json value, but attempting to distinguish numerical and boolean values so they are unquoted in the json</entry>
- <entry><literal>hstore_to_json('"a key"=>1, b=>t, c=>null, d=>12345, e=>012345, f=>1.234, g=>2.345e+4')</literal></entry>
+ <entry><literal>hstore_to_json_loose('"a key"=>1, b=>t, c=>null, d=>12345, e=>012345, f=>1.234, g=>2.345e+4')</literal></entry>
<entry><literal>{"a key": 1, "b": true, "c": null, "d": 12345, "e": "012345", "f": 1.234, "g": 2.345e+4}</literal></entry>
</row>
--
1.8.2.1
view thread (2+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: [PATCH] Fix discrepancy in hstore_to_json_loose documentation
In-Reply-To: <CABRT9RDkfbquJTH5s1JKyBQDOwy9eHMD8bmi40eFmBZWWJetjw@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox