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:16:10 +0000 (19:16 +0900)
commitc6b602cf35589154c3c4759beefd9856272fb2e4
tree9064a80446b620a607e3e8af74e985f2b4a992e6
parentb772d642ed83819ade16aa065d688a0206992d2e
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]