[panic] db.Transaction
panic after close()
#3380
Labels
type:with reproduction steps
with reproduction steps
db.Transaction
panic after close()
#3380
GORM Playground Link
go-gorm/playground#104
Description
when use
db.Transaction
on unexpect state such as call afterDB().Close()
panic.case: maybe call direct to sql/mysql
Close()
cannot clean some gorm spec states.当在某些其他位置数据库被关闭之后再执行
db.Transaction
直接崩溃可能的原因:现在直接暴露关闭原生的sql的
Close()
方法可能导致了gorm自己的内部状态的不一致The text was updated successfully, but these errors were encountered: