From 9fbbf0dde8e646adcb48c813f5d6acf761bf0921 Mon Sep 17 00:00:00 2001 From: Shigeru Hanada Date: Wed, 18 Apr 2012 18:21:02 +0900 Subject: [PATCH] =?utf8?q?=E3=83=91=E3=83=BC=E3=82=B9=E5=87=A6=E7=90=86?= =?utf8?q?=E3=81=AE=E6=B5=81=E3=82=8C=E3=82=92=E3=80=8C=E3=83=91=E3=83=BC?= =?utf8?q?=E3=83=84=E8=AA=AD=E3=81=BF=E5=8F=96=E3=82=8A=E3=80=8D=E2=86=92?= =?utf8?q?=E3=80=8C=E7=A9=BA=E7=99=BD=E8=AA=AD=E3=81=BF=E9=A3=9B=E3=81=B0?= =?utf8?q?=E3=81=97=E3=80=8D=E3=81=AB=E7=B5=B1=E4=B8=80=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- pg_hint_plan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pg_hint_plan.c b/pg_hint_plan.c index b398018..b38316e 100644 --- a/pg_hint_plan.c +++ b/pg_hint_plan.c @@ -1027,6 +1027,7 @@ ParseScanMethod(PlanHint *plan, Query *parse, char *keyword, const char *str) ScanHintDelete(hint); return NULL; } + skip_space(str); /* * インデックスリストを受け付けるヒントであれば、インデックス参照をパース @@ -1038,7 +1039,6 @@ ParseScanMethod(PlanHint *plan, Query *parse, char *keyword, const char *str) #endif strcmp(keyword, HINT_BITMAPSCAN) == 0) { - skip_space(str); while (*str != ')' && *str != '\0') { char *indexname; @@ -1056,7 +1056,7 @@ ParseScanMethod(PlanHint *plan, Query *parse, char *keyword, const char *str) } /* カッコが閉じていなければヒント無効。 */ - skip_space(str); + skip_space(str); /* just in case */ if (*str != ')') { parse_ereport(str, ("Closed parenthesis is necessary.")); -- 2.11.0