OSDN Git Service

Use pg_strcasecmp instead of strcasecmp for the sake of portability
authorKyotaro Horiguchi <horiguchi.kyotaro@lab.ntt.co.jp>
Mon, 6 Nov 2017 05:04:04 +0000 (14:04 +0900)
committerKyotaro Horiguchi <horiguchi.kyotaro@lab.ntt.co.jp>
Mon, 6 Nov 2017 05:04:04 +0000 (14:04 +0900)
pg_hint_plan.c

index 1ba467c..33c2b1e 100644 (file)
@@ -1510,7 +1510,7 @@ parse_hints(HintState *hstate, Query *parse, const char *str)
                        char   *keyword = parser->keyword;
                        Hint   *hint;
 
-                       if (strcasecmp(buf.data, keyword) != 0)
+                       if (pg_strcasecmp(buf.data, keyword) != 0)
                                continue;
 
                        hint = parser->create_func(head, keyword, parser->hint_keyword);