pgpool2.git / summary / log / commit / refs
commit 8371f05241e1acebd30ebf5ab86a9e18a697b4ed
Author: Toshihiro Kitagawa <kitagawa at sraoss.co.jp>
Date: Mon May 10 09:35:45 2010 +0000
Fix SimpleForwardToFrontend() so that it reset select_in_transaction flag
and execute_select flag when bind error occurred while executing SELECT.
pool_process_query.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/pool_process_query.c b/pool_process_query.c
index f7180c204..1800b72be 100644
--- a/pool_process_query.c
+++ b/pool_process_query.c
@@ -1209,7 +1209,11 @@ POOL_STATUS SimpleForwardToFrontend(char kind, POOL_CONNECTION *frontend, POOL_C
free(pending_prepared_portal);
}
}
- else if (kind == 'C' && select_in_transaction)
+ /*
+ * The response of Execute command will be EmptyQueryResponse(I),
+ * if Bind error occurs.
+ */
+ else if ((kind == 'C' || kind == 'I') && select_in_transaction)
{
select_in_transaction = 0;
execute_select = 0;
[parent: ad6735fdd016]