pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #13906: improper hstore_to_json_loose functioning
2+ messages / 2 participants
[nested] [flat]
* BUG #13906: improper hstore_to_json_loose functioning
@ 2016-02-02 12:59 dmitry-ryabov@mail.ru
0 siblings, 1 reply; 2+ messages in thread
From: dmitry-ryabov@mail.ru @ 2016-02-02 12:59 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 13906
Logged by: Dmitry Ryabov
Email address: dmitry-ryabov@mail.ru
PostgreSQL version: 9.4.5
Operating system: any
Description:
select hstore_to_json_loose(hstore('abc', '2016-01-01'))
any date/time/timestamp interpreted as the number
--
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] 2+ messages in thread
* Re: BUG #13906: improper hstore_to_json_loose functioning
@ 2016-02-02 22:55 Tom Lane <tgl@sss.pgh.pa.us>
parent: dmitry-ryabov@mail.ru
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2016-02-02 22:55 UTC (permalink / raw)
To: dmitry-ryabov@mail.ru; +Cc: pgsql-bugs
dmitry-ryabov@mail.ru writes:
> select hstore_to_json_loose(hstore('abc', '2016-01-01'))
> any date/time/timestamp interpreted as the number
Yeah, that's broken all right. Looking more closely, the combination of
IsValidJsonNumber and json_lex_number will fail to notice trailing junk
that is not part of a number unless that junk is (or at least begins with)
an alphanumeric. The "-" here breaks that.
Will fix, thanks for the report!
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] 2+ messages in thread
end of thread, other threads:[~2016-02-02 22:55 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-02-02 12:59 BUG #13906: improper hstore_to_json_loose functioning dmitry-ryabov@mail.ru
2016-02-02 22:55 ` Tom Lane <tgl@sss.pgh.pa.us>
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