pgpool2.git / summary / log / commit / refs
commit 9e61b0f571509799c8792189e39c3d4dc4d8ff13
Author: Tatsuo Ishii <ishii at sraoss.co.jp>
Date: Tue Dec 30 01:05:37 2008 +0000
Fix detect_error() so that it ignores NOTICE.
Without this following error occurs, for example:
BEGIN;
BEGIN;
ERROR: kind mismatch among backends 0[N] 1[E]
pool_process_query.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pool_process_query.c b/pool_process_query.c
index 00d2c1a1e..7f72d00e5 100644
--- a/pool_process_query.c
+++ b/pool_process_query.c
@@ -3962,8 +3962,8 @@ static int detect_error(POOL_CONNECTION *backend, char *error_code, int major, b
memcpy(p, &kind, sizeof(kind));
p += sizeof(kind);
- /* ErrorResponse or NoticeResponse message? */
- if (kind == 'E' || kind == 'N')
+ /* ErrorResponse? */
+ if (kind == 'E')
{
/* read actual message */
if (major == PROTO_MAJOR_V3)
[parent: 535ded49ffd5]