OSDN Git Service

Do null-check of error_context_stack before use
authorKyotaro Horiguchi <horikyota.ntt@gmail.com>
Thu, 13 Feb 2020 05:34:01 +0000 (14:34 +0900)
committerKyotaro Horiguchi <horikyota.ntt@gmail.com>
Thu, 13 Feb 2020 05:53:38 +0000 (14:53 +0900)
commitb920371b28ab3db63cc80855ef18aaf5592e30b0
tree21a67fa19f10b2b42bfe77de1548b302d41d50b0
parent22a770c5707099cd2da2c19b355c19e4347514a9
Do null-check of error_context_stack before use

The variable is accessed without null checking when planner is called
in the context of pl/pgsql. Fix it. Back-patched up to pg_hint_plan94.

Reporter: egashira-yusuke
Issue: https://github.com/ossc-db/pg_hint_plan/issues/42
Original-Author: sun-wei <30999182+Dagouhan@users.noreply.github.com>
Original-patch: https://github.com/ossc-db/pg_hint_plan/pull/45/commits/8fe092ef73a9af6cfb41e20717d7cb35aa74fce2
pg_hint_plan.c