OSDN Git Service

Do null-check of error_context_stack before use
authorKyotaro Horiguchi <horikyota.ntt@gmail.com>
Thu, 13 Feb 2020 05:16:29 +0000 (14:16 +0900)
committerKyotaro Horiguchi <horikyota.ntt@gmail.com>
Thu, 13 Feb 2020 05:52:33 +0000 (14:52 +0900)
commit987abe50181f2950a5ee39908050f1d5a3139553
tree8580b0553b8efcbbf3a6535c112c3c1a76037e11
parent64fe7671a3f6ffc65dd1d8f03f60e627ba17bca0
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