From 5f4e855229fda25d0c5378550002e4f0e91c39bd Mon Sep 17 00:00:00 2001 From: Kyotaro Horiguchi Date: Wed, 9 Jan 2019 09:35:41 +0900 Subject: [PATCH] Call standrad_ProcessUtility when no hook is set The last commit d5ec243 forgot the case of no previous hook function in the ProcessUtility hook function. Fix it. --- pg_hint_plan.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pg_hint_plan.c b/pg_hint_plan.c index e050672..15fc8a1 100644 --- 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; -- 2.11.0