pgpool2.git / summary / log / commit / refs
commit 438454908d7d562276dac8d75ddcef9e8c89b64f
Author: Tatsuo Ishii <ishii at sraoss.co.jp>
Date: Thu Aug 06 07:57:03 2009 +0000
Print last query for kind mismatch error message even extended
protocol is used. Patch contributed by Akio Ishida.
pool_proto_modules.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/pool_proto_modules.c b/pool_proto_modules.c
index b7e524ff3..bf0b038cf 100644
--- a/pool_proto_modules.c
+++ b/pool_proto_modules.c
@@ -670,6 +670,7 @@ POOL_STATUS Execute(POOL_CONNECTION *frontend,
string1 = portal->sql_string;
node = (Node *)p_stmt->query;
+ strncpy(query_string_buffer, string1, sizeof(query_string_buffer));
if ((IsA(node, PrepareStmt) || IsA(node, DeallocateStmt) ||
IsA(node, VariableSetStmt)) &&
[parent: 475091c9e3af]