• R/O
  • HTTP
  • SSH
  • HTTPS

提交

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

firtst release


Commit MetaInfo

修訂6a588354120787e78cfcfaed26c3f67b6f6b9b84 (tree)
時間2019-03-08 13:58:52
作者Kyotaro Horiguchi <horiguchi.kyotaro@lab....>
CommiterKyotaro Horiguchi

Log Message

Silence some compilers

Some compilers seem to complain about the previous patch, that
prev_hint_str is used uninitialized. Actually it is not but move the
initialization code out of the PG_TRY() section so that such compilers
would be quiet.

Change Summary

差異

--- a/pg_hint_plan.c
+++ b/pg_hint_plan.c
@@ -3082,19 +3082,19 @@ pg_hint_plan_planner(Query *parse, int cursorOptions, ParamListInfo boundParams)
30823082 }
30833083
30843084 /*
3085+ * The planner call below may replace current_hint_str. Store and restore
3086+ * it so that the subsequent planning in the upper level doesn't get
3087+ * confused.
3088+ */
3089+ recurse_level++;
3090+ prev_hint_str = current_hint_str;
3091+
3092+ /*
30853093 * Use PG_TRY mechanism to recover GUC parameters and current_hint_state to
30863094 * the state when this planner started when error occurred in planner.
30873095 */
30883096 PG_TRY();
30893097 {
3090- /*
3091- * The planner call below may replace current_hint_str. Store and
3092- * restore it so that the subsequent planning in the upper level
3093- * doesn't get confused.
3094- */
3095- recurse_level++;
3096- prev_hint_str = current_hint_str;
3097-
30983098 if (prev_planner)
30993099 result = (*prev_planner) (parse, cursorOptions, boundParams);
31003100 else