pgpool2.git / summary / log / commit / refs
commit 65e6f5df17cadbc62b7a2f7c20efe869a3628316
Author: Bo Peng <pengbo@sraoss.co.jp>
Date: Fri Aug 10 09:12:45 2018 +0000
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);
[parent: 16ec487925d6]