From: Mitsuru Hasegawa Date: Wed, 18 Apr 2012 09:16:16 +0000 (+0900) Subject: ParseScanMethodをPostgreSQL9.1に対応した。 X-Git-Tag: REL91_1_1_1~350 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=2dd46f9eb0978e7eece9d5e29c03b7a28d6923a9;p=pghintplan%2Fpg_hint_plan.git ParseScanMethodをPostgreSQL9.1に対応した。 --- diff --git a/pg_hint_plan.c b/pg_hint_plan.c index 409ec6d..b398018 100644 --- a/pg_hint_plan.c +++ b/pg_hint_plan.c @@ -1033,8 +1033,10 @@ ParseScanMethod(PlanHint *plan, Query *parse, char *keyword, const char *str) * する。 */ if (strcmp(keyword, HINT_INDEXSCAN) == 0 || - strcmp(keyword, HINT_BITMAPSCAN) == 0 || - strcmp(keyword, HINT_INDEXONLYSCAN) == 0) +#if PG_VERSION_NUM >= 90200 + strcmp(keyword, HINT_INDEXONLYSCAN) == 0 || +#endif + strcmp(keyword, HINT_BITMAPSCAN) == 0) { skip_space(str); while (*str != ')' && *str != '\0')