From 65e6f5df17cadbc62b7a2f7c20efe869a3628316 Mon Sep 17 00:00:00 2001 From: Bo Peng Date: Fri, 10 Aug 2018 18:12:45 +0900 Subject: [PATCH] Fix that if the last character of black_query_pattern_list is not ";", the last SQL pattern was ignored. Now wether or not the last character ";" exists, the SQL patterns will be correctly handled. --- src/config/pool_config_variables.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/pool_config_variables.c b/src/config/pool_config_variables.c index bca7b22a4..638093e39 100644 --- a/src/config/pool_config_variables.c +++ b/src/config/pool_config_variables.c @@ -2522,7 +2522,7 @@ static char **get_list_from_string_regex_delim(const char *input, const char *de return NULL; tokens = palloc(MAXTOKENS * sizeof(char *)); - if (*(input + strlen(input) - 1) != *delimi) + if (*(input + strlen(input) - 1) != *delimi || *(input + strlen(input) - 2) == '\\') { int len = strlen(input) + 2; str = palloc(len); -- 2.39.5