OSDN Git Service

Fixed a crash bug by DECLARE CURSOR and enable_hint_table = on
authorKyotaro Horiguchi <horiguchi.kyotaro@lab.ntt.co.jp>
Thu, 27 Jul 2017 03:26:55 +0000 (12:26 +0900)
committerKyotaro Horiguchi <horiguchi.kyotaro@lab.ntt.co.jp>
Thu, 27 Jul 2017 10:19:57 +0000 (19:19 +0900)
commitde449945fe23b70d284a2240085620b708d0ef57
treeaf1c75502a44991ba0a7cbca67216f0f626c197c
parent00256f95cd05d9fa6d1c62661929be47ba107ef0
Fixed a crash bug by DECLARE CURSOR and enable_hint_table = on

The previous version causes assertion failure by DECLARE CURSOR syntax
when table hint is activated. The cause is that the version forgot the
fact that DelcareCursorStmt is in a bit strange shape. Add support of
DECLARE CURSOR and regression test for table hinting.
Makefile
expected/ut-T.out [new file with mode: 0644]
pg_hint_plan.c
sql/ut-T.sql [new file with mode: 0644]