From: Marko Kreen Date: Fri, 12 Sep 2008 07:52:37 +0000 (+0000) Subject: use pg_strcasecmp instead strcasecmp for consistency X-Git-Tag: plproxy_2_0_7rc1~5 X-Git-Url: http://git.postgresql.org/gitweb/static/session/%7B%7Bsession.id%7D%7D-%7B%7Bsession.title%7Cslugify%7D%7D?a=commitdiff_plain;h=682333dc7ee9ac81133a61bf437bfad369ecec16;p=plproxy.git use pg_strcasecmp instead strcasecmp for consistency --- 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);