* exec_stmt_commit * * Commit the transaction. */
| 4889 | * Commit the transaction. |
| 4890 | */ |
| 4891 | static int |
| 4892 | exec_stmt_commit(PLpgSQL_execstate *estate, PLpgSQL_stmt_commit *stmt) |
| 4893 | { |
| 4894 | if (stmt->chain) |
| 4895 | SPI_commit_and_chain(); |
| 4896 | else |
| 4897 | SPI_commit(); |
| 4898 | |
| 4899 | /* |
| 4900 | * We need to build new simple-expression infrastructure, since the old |
| 4901 | * data structures are gone. |
| 4902 | */ |
| 4903 | estate->simple_eval_estate = NULL; |
| 4904 | estate->simple_eval_resowner = NULL; |
| 4905 | plpgsql_create_econtext(estate); |
| 4906 | |
| 4907 | return PLPGSQL_RC_OK; |
| 4908 | } |
| 4909 | |
| 4910 | /* |
| 4911 | * exec_stmt_rollback |
no test coverage detected