From b76ef782139675a0969f84612d28d80460e6c52d Mon Sep 17 00:00:00 2001 From: Yoshiyuki Asaba Date: Fri, 2 Nov 2007 09:27:52 +0000 Subject: [PATCH] Ignore white space in need_insert_lock(). --- pool_process_query.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pool_process_query.c b/pool_process_query.c index d174c35..f645507 100644 --- a/pool_process_query.c +++ b/pool_process_query.c @@ -3587,6 +3587,13 @@ static int need_insert_lock(POOL_CONNECTION_POOL *backend, char *query) { if (MAJOR(backend) != PROTO_MAJOR_V3) return 0; + + if (pool_config.ignore_leading_white_space) + { + /* ignore leading white spaces */ + while (*query && isspace(*query)) + query++; + } /* * either insert_lock directive specified and without "NO INSERT LOCK" comment -- 2.39.5