pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Improve error reporting for jsonpath .double() method 3+ messages / 1 participants [nested] [flat]
* pgsql: Improve error reporting for jsonpath .double() method @ 2020-07-11 00:25 Alexander Korotkov <akorotkov@postgresql.org> 0 siblings, 0 replies; 3+ messages in thread From: Alexander Korotkov @ 2020-07-11 00:25 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Improve error reporting for jsonpath .double() method When jsonpath .double() method detects that numeric or string can't be converted to double precision, it throws an error. This commit makes these errors explicitly express the reason of failure. Discussion: https://postgr.es/m/CAPpHfdtqJtiSXkP7tOXez18NxhLUH_-75bL8%3DOce4Ki%2Bbv7V6Q%40mail.gmail.com Author: Alexander Korotkov Reviewed-by: Tom Lane Backpatch-through: 12 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/0657181167467ec5cfb5a28aacf47ca02f5f4588 Modified Files -------------- src/backend/utils/adt/jsonpath_exec.c | 4 ++-- src/test/regress/expected/jsonb_jsonpath.out | 8 +++++--- src/test/regress/sql/jsonb_jsonpath.sql | 1 + 3 files changed, 8 insertions(+), 5 deletions(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Improve error reporting for jsonpath .double() method @ 2020-07-11 00:25 Alexander Korotkov <akorotkov@postgresql.org> 0 siblings, 0 replies; 3+ messages in thread From: Alexander Korotkov @ 2020-07-11 00:25 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Improve error reporting for jsonpath .double() method When jsonpath .double() method detects that numeric or string can't be converted to double precision, it throws an error. This commit makes these errors explicitly express the reason of failure. Discussion: https://postgr.es/m/CAPpHfdtqJtiSXkP7tOXez18NxhLUH_-75bL8%3DOce4Ki%2Bbv7V6Q%40mail.gmail.com Author: Alexander Korotkov Reviewed-by: Tom Lane Backpatch-through: 12 Branch ------ REL_13_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/b9a04a9bc6653183ed23532145325694fbc46002 Modified Files -------------- src/backend/utils/adt/jsonpath_exec.c | 4 ++-- src/test/regress/expected/jsonb_jsonpath.out | 8 +++++--- src/test/regress/sql/jsonb_jsonpath.sql | 1 + 3 files changed, 8 insertions(+), 5 deletions(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Improve error reporting for jsonpath .double() method @ 2020-07-11 00:25 Alexander Korotkov <akorotkov@postgresql.org> 0 siblings, 0 replies; 3+ messages in thread From: Alexander Korotkov @ 2020-07-11 00:25 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Improve error reporting for jsonpath .double() method When jsonpath .double() method detects that numeric or string can't be converted to double precision, it throws an error. This commit makes these errors explicitly express the reason of failure. Discussion: https://postgr.es/m/CAPpHfdtqJtiSXkP7tOXez18NxhLUH_-75bL8%3DOce4Ki%2Bbv7V6Q%40mail.gmail.com Author: Alexander Korotkov Reviewed-by: Tom Lane Backpatch-through: 12 Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/3ec5f6b53dfb6acfe66a952edef1b6887da91777 Modified Files -------------- src/backend/utils/adt/jsonpath_exec.c | 4 ++-- src/test/regress/expected/jsonb_jsonpath.out | 8 +++++--- src/test/regress/sql/jsonb_jsonpath.sql | 1 + 3 files changed, 8 insertions(+), 5 deletions(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2020-07-11 00:25 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2020-07-11 00:25 pgsql: Improve error reporting for jsonpath .double() method Alexander Korotkov <akorotkov@postgresql.org> 2020-07-11 00:25 pgsql: Improve error reporting for jsonpath .double() method Alexander Korotkov <akorotkov@postgresql.org> 2020-07-11 00:25 pgsql: Improve error reporting for jsonpath .double() method Alexander Korotkov <akorotkov@postgresql.org>
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