OSDN Git Service
(root)
/
pghintplan
/
pg_hint_plan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9fe6c9
)
通常のクエリでもplpgsqlのクエリのように扱ってしまうバグを修正した。
author
Takashi Suzuki
<suzuki.takashi@metrosystems.co.jp>
Fri, 31 May 2013 10:04:58 +0000
(19:04 +0900)
committer
Takashi Suzuki
<suzuki.takashi@metrosystems.co.jp>
Fri, 31 May 2013 10:04:58 +0000
(19:04 +0900)
pg_hint_plan.c
patch
|
blob
|
history
diff --git
a/pg_hint_plan.c
b/pg_hint_plan.c
index
6a94125
..
db1082a
100644
(file)
--- a/
pg_hint_plan.c
+++ b/
pg_hint_plan.c
@@
-1358,8
+1358,10
@@
parse_head_comment(Query *parse)
entry = FetchPreparedStatement(stmt_name, true);
p = entry->plansource->query_string;
}
- else
+ else
if (hint_query_string)
p = hint_query_string;
+ else
+ p = debug_query_string;
if (p == NULL)
return NULL;
@@
-2054,8
+2056,6
@@
pg_hint_plan_planner(Query *parse, int cursorOptions, ParamListInfo boundParams)
}
/* Create hint struct from parse tree. */
- if (!hint_query_string)
- hint_query_string = debug_query_string;
hstate = parse_head_comment(parse);
/*