Fix bugs with data modifying WITH clause reported in bug#153.
authorTatsuo Ishii <ishii@postgresql.org>
Wed, 14 Oct 2015 02:25:51 +0000 (11:25 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Wed, 14 Oct 2015 02:25:51 +0000 (11:25 +0900)
commit862e6628f3a61edee8fb4cb1ce4248391cea63fb
tree62fd88a24573241dc70ea6ec6b3b3a10b3a5c89c
parent910afe01387b7c411350e6ee8fa1795dce5ffec0
Fix bugs with data modifying WITH clause reported in bug#153.

pgpool-II does not recognize the data modifying WITH clause despite
pgpool-II 3.3 or after has SQL parser which recognizes it. The bug has
been fixed in pgpool-II 3.5 (having PostgreSQL 9.5 parser).

Data modifying WITH clause was introduced in PostgreSQL 9.1. Since
pgpool-II 3.3 has 9.2 parser and pgpool-II 3.4 has 9.4 parser, the fix
is back ported to pgpool-II 3.3 and 3.4.
src/context/pool_query_context.c
src/protocol/pool_process_query.c
src/test/regression/tests/064.bug153/test.sh [new file with mode: 0755]