From 682333dc7ee9ac81133a61bf437bfad369ecec16 Mon Sep 17 00:00:00 2001 From: Marko Kreen Date: Fri, 12 Sep 2008 07:52:37 +0000 Subject: [PATCH] use pg_strcasecmp instead strcasecmp for consistency --- src/cluster.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cluster.c b/src/cluster.c index 3cd892a..3558b59 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -263,13 +263,13 @@ get_config(ProxyCluster *cluster, Datum dname, ProxyFunction *func) if (val == NULL) plproxy_error(func, "val must not be NULL"); - if (strcasecmp(key, "statement_timeout") == 0) + if (pg_strcasecmp(key, "statement_timeout") == 0) /* ignore */ ; - else if (strcasecmp("connection_lifetime", key) == 0) + else if (pg_strcasecmp("connection_lifetime", key) == 0) cf->connection_lifetime = atoi(val); - else if (strcasecmp("query_timeout", key) == 0) + else if (pg_strcasecmp("query_timeout", key) == 0) cf->query_timeout = atoi(val); - else if (strcasecmp("disable_binary", key) == 0) + else if (pg_strcasecmp("disable_binary", key) == 0) cf->disable_binary = atoi(val); else plproxy_error(func, "Unknown config param: %s", key); -- 2.39.5