txn: move stmt list/savepoint manipulation out of txn_stmt_new
txn_stmt_new is supposed to simply allocate an initialize a new txn_stmt struct. Adding the new statement to the txn's statement list and setting up a savepoint for rollback looks confusing. Move it to txn_begin_stmt.
Loading
Please register or sign in to comment