use pg_strcasecmp instead strcasecmp for consistency
authorMarko Kreen <markokr@gmail.com>
Fri, 12 Sep 2008 07:52:37 +0000 (07:52 +0000)
committerMarko Kreen <markokr@gmail.com>
Fri, 12 Sep 2008 07:52:37 +0000 (07:52 +0000)
src/cluster.c

index 3cd892a54c14b3fde2b03d5f14aa4ef41d71b210..3558b59409f28f87a16c70f54ff065ac06919938 100644 (file)
@@ -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);