pgpool2.git / summary / log / commit / refs
commit a50fef79237fe1d4dcf94a6427162ddcecde1597
Author: Toshihiro Kitagawa <kitagawa at sraoss.co.jp>
Date: Wed Aug 17 07:44:38 2011 +0000
Fix bug which rewriting timestamp of default value fails in PREPARE
(non extended protocol case). This used to work but was broken in 3.0.
pool_proto_modules.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/pool_proto_modules.c b/pool_proto_modules.c
index 0d4be60c3..4f1729a6f 100644
--- a/pool_proto_modules.c
+++ b/pool_proto_modules.c
@@ -395,7 +395,11 @@ POOL_STATUS SimpleQuery(POOL_CONNECTION *frontend,
{
POOL_SENT_MESSAGE *msg = NULL;
- if (IsA(node, ExecuteStmt))
+ if (IsA(node, PrepareStmt))
+ {
+ msg = session_context->uncompleted_message;
+ }
+ else if (IsA(node, ExecuteStmt))
{
msg = pool_get_sent_message('Q', ((ExecuteStmt *)node)->name);
if (!msg)
[parent: 0381b6c36697]