• R/O
  • HTTP
  • SSH
  • HTTPS

pg_hint_plan: コミット

firtst release


コミットメタ情報

リビジョンe40ba9a2c9e74b7ef295ecc89c6710203fd5d470 (tree)
日時2017-11-06 14:00:23
作者Arthur Zakirov <z-arthur@yand...>
コミッターKyotaro Horiguchi

ログメッセージ

Use pg_strcasecmp instead of strcasecmp for the sake of portability

変更サマリ

差分

--- a/pg_hint_plan.c
+++ b/pg_hint_plan.c
@@ -1647,7 +1647,7 @@ parse_hints(HintState *hstate, Query *parse, const char *str)
16471647 char *keyword = parser->keyword;
16481648 Hint *hint;
16491649
1650- if (strcasecmp(buf.data, keyword) != 0)
1650+ if (pg_strcasecmp(buf.data, keyword) != 0)
16511651 continue;
16521652
16531653 hint = parser->create_func(head, keyword, parser->hint_keyword);
@@ -2471,9 +2471,9 @@ ParallelHintParse(ParallelHint *hint, HintState *hstate, Query *parse,
24712471 if (length == 3)
24722472 {
24732473 const char *modeparam = (const char *)list_nth(name_list, 2);
2474- if (strcasecmp(modeparam, "hard") == 0)
2474+ if (pg_strcasecmp(modeparam, "hard") == 0)
24752475 force_parallel = true;
2476- else if (strcasecmp(modeparam, "soft") != 0)
2476+ else if (pg_strcasecmp(modeparam, "soft") != 0)
24772477 {
24782478 hint_ereport(modeparam,
24792479 ("enforcement must be soft or hard: %s",
旧リポジトリブラウザで表示