• R/O
  • HTTP
  • SSH
  • HTTPS

pg_hint_plan: Commit

firtst release


Commit MetaInfo

Revisione001299f71870fc2cda86328a3306495b9a809b4 (tree)
Time2013-09-05 18:37:51
AuthorTakashi Suzuki <suzuki.takashi@metr...>
CommiterTakashi Suzuki

Log Message

PL/pgSQL文の様々パターンに対応するために条件分岐コマンドを変更した。

Change Summary

Incremental Difference

--- a/pg_hint_plan.c
+++ b/pg_hint_plan.c
@@ -3587,10 +3587,15 @@ set_rel_pathlist(PlannerInfo *root, RelOptInfo *rel,
35873587 static void
35883588 pg_hint_plan_plpgsql_stmt_beg(PLpgSQL_execstate *estate, PLpgSQL_stmt *stmt)
35893589 {
3590- if ((enum PLpgSQL_stmt_types) stmt->cmd_type == PLPGSQL_STMT_EXECSQL)
3590+ PLpgSQL_expr *expr;
3591+ switch ((enum PLpgSQL_stmt_types) stmt->cmd_type)
35913592 {
3592- PLpgSQL_expr *expr = ((PLpgSQL_stmt_execsql *) stmt)->sqlstmt;
3593- plpgsql_query_string = expr->query;
3593+ case PLPGSQL_STMT_EXECSQL:
3594+ expr = ((PLpgSQL_stmt_execsql *) stmt)->sqlstmt;
3595+ plpgsql_query_string = expr->query;
3596+ break;
3597+ default:
3598+ break;
35943599 }
35953600 }
35963601
Show on old repository browser