pgpool2.git / summary / log / commit / refs
commit 2e24740f8f4540c958f5e70dbfa185dc11018713
Author: Toshihiro Kitagawa <kitagawa at sraoss.co.jp>
Date: Thu Jul 29 04:04:07 2010 +0000
Fix DEALLOCATE issue when using PHP-PDO.
PHP-PDO uses extended query protocol, but DEALLOCATE sends by simple query protocol.
pool_query_context.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/pool_query_context.c b/pool_query_context.c
index 943ed9af5..8b3b790ae 100644
--- a/pool_query_context.c
+++ b/pool_query_context.c
@@ -436,6 +436,17 @@ void pool_where_to_send(POOL_QUERY_CONTEXT *query_context, char *query, Node *no
/* Inherit same map from PREPARE */
pool_copy_prep_where(wts, query_context->where_to_send);
}
+ else
+ {
+ PreparedStatement *ps;
+
+ ps = pool_get_prepared_statement_by_pstmt_name(d->name);
+ if (ps)
+ {
+ if (ps->qctxt)
+ pool_copy_prep_where(ps->qctxt->where_to_send, query_context->where_to_send);
+ }
+ }
}
}
}
[parent: 87f91f01f8bf]