草庐IT

CloseJira

全部标签

go - 如何在事务回滚上添加一些操作

//将CloseJira状态更新到数据库中问题陈述-Golang如何以及在何处调用autogeneratedjiraclose()函数以在回滚触发时运行某些操作。funcCloseJira(qMonNamestring){tx,err:=dbCon.Begin()notifier.CheckErr(err,"CloseJira()->tx->dbCon.Begin()",dbErrLog)defertx.Rollback()stmt,errDBPrepare:=tx.Prepare("updateTABLE1setKey=NULL,StatusKey='Closed',Statusti