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:
d5ec243
)
Call standrad_ProcessUtility when no hook is set
author
Kyotaro Horiguchi
<horiguchi.kyotaro@lab.ntt.co.jp>
Wed, 9 Jan 2019 00:35:41 +0000
(09:35 +0900)
committer
Kyotaro Horiguchi
<horiguchi.kyotaro@lab.ntt.co.jp>
Wed, 9 Jan 2019 00:35:41 +0000
(09:35 +0900)
The last commit
d5ec243
forgot the case of no previous hook function
in the ProcessUtility hook function. Fix it.
pg_hint_plan.c
patch
|
blob
|
history
diff --git
a/pg_hint_plan.c
b/pg_hint_plan.c
index
e050672
..
15fc8a1
100644
(file)
--- a/
pg_hint_plan.c
+++ b/
pg_hint_plan.c
@@
-2967,6
+2967,9
@@
pg_hint_plan_ProcessUtility(PlannedStmt *pstmt, const char *queryString,
if (prev_ProcessUtility_hook)
prev_ProcessUtility_hook(pstmt, queryString, context, params, queryEnv,
dest, completionTag);
+ else
+ standard_ProcessUtility(pstmt, queryString, context, params, queryEnv,
+ dest, completionTag);
if (plpgsql_recurse_level == 0)
current_hint_retrieved = false;