Keep Error for new Session

This commit is contained in:
Jinzhu 2021-01-07 11:45:40 +08:00
parent bf0fd9bef6
commit a5bfe2f39d
1 changed files with 1 additions and 0 deletions

View File

@ -163,6 +163,7 @@ func (db *DB) Session(config *Session) *DB {
tx = &DB{
Config: &txConfig,
Statement: db.Statement,
Error: db.Error,
clone: 1,
}
)