• R/O
  • HTTP
  • SSH
  • HTTPS

pg_hint_plan: コミット

firtst release


コミットメタ情報

リビジョン93e83719ed280144df0fd773e1ea3c3a380022e5 (tree)
日時2017-11-06 14:00:01
作者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
@@ -1655,7 +1655,7 @@ parse_hints(HintState *hstate, Query *parse, const char *str)
16551655 char *keyword = parser->keyword;
16561656 Hint *hint;
16571657
1658- if (strcasecmp(buf.data, keyword) != 0)
1658+ if (pg_strcasecmp(buf.data, keyword) != 0)
16591659 continue;
16601660
16611661 hint = parser->create_func(head, keyword, parser->hint_keyword);
@@ -2468,9 +2468,9 @@ ParallelHintParse(ParallelHint *hint, HintState *hstate, Query *parse,
24682468 if (length == 3)
24692469 {
24702470 const char *modeparam = (const char *)list_nth(name_list, 2);
2471- if (strcasecmp(modeparam, "hard") == 0)
2471+ if (pg_strcasecmp(modeparam, "hard") == 0)
24722472 force_parallel = true;
2473- else if (strcasecmp(modeparam, "soft") != 0)
2473+ else if (pg_strcasecmp(modeparam, "soft") != 0)
24742474 {
24752475 hint_ereport(modeparam,
24762476 ("enforcement must be soft or hard: %s",
旧リポジトリブラウザで表示