pgpool2.git / summary / log / commit / refs
commit f38b05cbdea04dc00ad48394e87af64ccf67c7c2
Author: Yoshiyuki Asaba <y-asaba at pgfoundry.org>
Date: Fri Feb 15 06:19:51 2008 +0000
Fix DISCARD statement handling.
pool_process_query.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/pool_process_query.c b/pool_process_query.c
index f9992be9a..9b6060234 100644
--- a/pool_process_query.c
+++ b/pool_process_query.c
@@ -1065,7 +1065,8 @@ static POOL_STATUS SimpleQuery(POOL_CONNECTION *frontend,
return POOL_CONTINUE;
}
- if (IsA(node, PrepareStmt) || IsA(node, DeallocateStmt) || IsA(node, VariableSetStmt))
+ if (IsA(node, PrepareStmt) || IsA(node, DeallocateStmt) ||
+ IsA(node, VariableSetStmt) || IsA(node, DiscardStmt))
{
/*
* PREPARE, DEALLOCATE and SET statements must be replicated.
[parent: 80870cbe5f5b]