pgpool2.git / summary / log / commit / refs

commit    0fa64a73a8694ef4644acf555f284850346237e9
Author:   Yoshiyuki Asaba <y-asaba at pgfoundry.org>
Date:     Mon Nov 05 01:41:22 2007 +0000

    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 79c325c92..5bcc2ad9e 100644 --- a/pool_process_query.c +++ b/pool_process_query.c @@ -4555,6 +4555,13 @@ POOL_STATUS OneNode_do_command(POOL_CONNECTION *frontend, POOL_CONNECTION *backe */ static int need_insert_lock(POOL_CONNECTION_POOL *backend, char *query, Node *node) { + 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 * or "INSERT LOCK" comment exists? [parent: f75ae8dfdead]