pgpool2.git / summary / log / commit / refs

commit    771bbca81f7cb6b68c2f771b8ca75457a8168b17
Author:   Tatsuo Ishii <ishii at sraoss.co.jp>
Date:     Sun Jul 18 06:09:32 2010 +0000

    Fix where_to_send. DISCARD statement should be sent to all DB nodes.


pool_query_context.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pool_query_context.c b/pool_query_context.c index 61e4aa3a0..d248d823e 100644 --- a/pool_query_context.c +++ b/pool_query_context.c @@ -787,6 +787,14 @@ static POOL_DEST send_to_where(Node *node) } } + /* + * DISCARD + */ + else if (IsA(node, DiscardStmt)) + { + return POOL_BOTH; + } + /* * Other statements are sent to primary */ [parent: cba446e70abd]