From 2dd46f9eb0978e7eece9d5e29c03b7a28d6923a9 Mon Sep 17 00:00:00 2001 From: Mitsuru Hasegawa Date: Wed, 18 Apr 2012 18:16:16 +0900 Subject: [PATCH] =?utf8?q?ParseScanMethod=E3=82=92PostgreSQL9.1=E3=81=AB?= =?utf8?q?=E5=AF=BE=E5=BF=9C=E3=81=97=E3=81=9F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- pg_hint_plan.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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') -- 2.11.0