diff --git a/gorm.go b/gorm.go index ae94daf4..488e74e7 100644 --- a/gorm.go +++ b/gorm.go @@ -163,6 +163,7 @@ func (db *DB) Session(config *Session) *DB { tx = &DB{ Config: &txConfig, Statement: db.Statement, + Error: db.Error, clone: 1, } )