jsonpath Time and Timestamp Special Cases
От
David E. Wheeler
Тема
jsonpath Time and Timestamp Special Cases
Дата
Msg-id
8AB7857D-BD57-472E-94F5-1964A5B15971@justatheory.com
Список
Дерево обсуждения
jsonpath Time and Timestamp Special Cases "David E. Wheeler" <david@justatheory.com>
Re: jsonpath Time and Timestamp Special Cases "David E. Wheeler" <david@justatheory.com>
Re: jsonpath Time and Timestamp Special Cases Chapman Flack <jcflack@acm.org>
Hello hackers,
I noticed that the jsonpath date/time functions (.time() and timestamp(), et al.) don’t support some valid but special-case PostgreSQL values, notably `infinity`, `-infinity`, and, for times, '24:00:00`:
❯ psql
psql (17devel)
Type "help" for help.
david=# select jsonb_path_query(to_jsonb('24:00:00'::time), '$.time()');
ERROR: time format is not recognized: "24:00:00"
david=# select jsonb_path_query(to_jsonb('infinity'::timestamptz), '$.timestamp_tz()');
ERROR: timestamp_tz format is not recognized: "infinity"
I assume this is because the standard doesn’t support these, or references JavaScript-only values or some such. Is that right?
Best,
David
В списке pgsql-hackers по дате отправления