public inbox for [email protected]
help / color / mirror / Atom feed[PATCH] Fix discrepancy in hstore_to_json_loose documentation
2+ messages / 2 participants
[nested] [flat]
* [PATCH] Fix discrepancy in hstore_to_json_loose documentation
@ 2013-04-10 12:36 Marti Raudsepp <[email protected]>
2013-04-10 13:23 ` Re: [PATCH] Fix discrepancy in hstore_to_json_loose documentation Andrew Dunstan <[email protected]>
0 siblings, 1 reply; 2+ messages in thread
From: Marti Raudsepp @ 2013-04-10 12:36 UTC (permalink / raw)
To: pgsql-docs; +Cc: Andrew Dunstan <[email protected]>
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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: [PATCH] Fix discrepancy in hstore_to_json_loose documentation
2013-04-10 12:36 [PATCH] Fix discrepancy in hstore_to_json_loose documentation Marti Raudsepp <[email protected]>
@ 2013-04-10 13:23 ` Andrew Dunstan <[email protected]>
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Dunstan @ 2013-04-10 13:23 UTC (permalink / raw)
To: Marti Raudsepp <[email protected]>; +Cc: pgsql-docs
On 04/10/2013 08:36 AM, Marti Raudsepp wrote:
> 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.
>
>
Thanks, will fix.
cheers
andrew
--
Sent via pgsql-docs mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2013-04-10 13:23 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2013-04-10 12:36 [PATCH] Fix discrepancy in hstore_to_json_loose documentation Marti Raudsepp <[email protected]>
2013-04-10 13:23 ` Andrew Dunstan <[email protected]>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox