session: Fix txn.onStmtEnd is not called when some special error occurs in ExecutePreparedStmt (#26056)
session: Fix txn.onStmtEnd is not called when some special error occurs in ExecutePreparedStmt (#26056)

 
kyle-wang/tidb,kyle-wang/tidb,pingcap/tidb,kyle-wang/tidb,kyle-wang/tidb,c4pt0r/tidb,pingcap/tidb,ngaut/tidb,ngaut/tidb,ngaut/tidb,ngaut/tidb,ngaut/tidb,c4pt0r/tidb,coocood/tidb,c4pt0r/tidb,kyle-wang/tidb,c4pt0r/tidb,c4pt0r/tidb,ngaut/tidb,pingcap/tidb,kyle-wang/tidb,c4pt0r/tidb,coocood/tidb,pingcap/tidb,pingcap/tidb,pingcap/tidb