pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #14213: bug in hstore_to_json_loose() function
3+ messages / 3 participants
[nested] [flat]
* BUG #14213: bug in hstore_to_json_loose() function
@ 2016-06-24 14:26 knut@wehrle.org
2016-06-24 14:42 ` Re: BUG #14213: bug in hstore_to_json_loose() function Tom Lane <tgl@sss.pgh.pa.us>
2016-06-24 16:04 ` Re: BUG #14213: bug in hstore_to_json_loose() function Alvaro Herrera <alvherre@2ndquadrant.com>
0 siblings, 2 replies; 3+ messages in thread
From: knut@wehrle.org @ 2016-06-24 14:26 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 14213
Logged by: Knut Wehrle
Email address: knut@wehrle.org
PostgreSQL version: 9.4.5
Operating system: Window 7 Pro SP1
Description:
I get an arrow with the following command:
select hstore_to_json_loose(hstore('"date"=>"2016-06-24"'))->>'date'
The problem is, that the function is not generating an ISO date string but a
mathematical formula: 2016 - 06 - 24 = 1986!
Probably this is the intended way to handle this kind of data, but then the
'->>' operator would be buggy.
regards knut
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #14213: bug in hstore_to_json_loose() function
2016-06-24 14:26 BUG #14213: bug in hstore_to_json_loose() function knut@wehrle.org
@ 2016-06-24 14:42 ` Tom Lane <tgl@sss.pgh.pa.us>
1 sibling, 0 replies; 3+ messages in thread
From: Tom Lane @ 2016-06-24 14:42 UTC (permalink / raw)
To: knut@wehrle.org; +Cc: pgsql-bugs
knut@wehrle.org writes:
> PostgreSQL version: 9.4.5
> I get an arrow with the following command:
> select hstore_to_json_loose(hstore('"date"=>"2016-06-24"'))->>'date'
It's hard to be sure, but I think this might be the same as bug #13906
which was fixed in 9.4.6. If updating doesn't resolve it for you, please
resubmit with a more precise description of what's wrong.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #14213: bug in hstore_to_json_loose() function
2016-06-24 14:26 BUG #14213: bug in hstore_to_json_loose() function knut@wehrle.org
@ 2016-06-24 16:04 ` Alvaro Herrera <alvherre@2ndquadrant.com>
1 sibling, 0 replies; 3+ messages in thread
From: Alvaro Herrera @ 2016-06-24 16:04 UTC (permalink / raw)
To: knut@wehrle.org; +Cc: pgsql-bugs
knut@wehrle.org wrote:
> I get an arrow with the following command:
>
> select hstore_to_json_loose(hstore('"date"=>"2016-06-24"'))->>'date'
>
> The problem is, that the function is not generating an ISO date string but a
> mathematical formula: 2016 - 06 - 24 = 1986!
>
> Probably this is the intended way to handle this kind of data, but then the
> '->>' operator would be buggy.
Knut replied to the moderation notice to indicate that 9.4.8 fixed the
issue, and asked for a version log. Here's the git repository:
https://git.postgresql.org/gitweb/?p=postgresql.git
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2016-06-24 16:04 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-06-24 14:26 BUG #14213: bug in hstore_to_json_loose() function knut@wehrle.org
2016-06-24 14:42 ` Tom Lane <tgl@sss.pgh.pa.us>
2016-06-24 16:04 ` Alvaro Herrera <alvherre@2ndquadrant.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox