diff --git a/gorm.go b/gorm.go index 9c4d444f..f1e3745f 100644 --- a/gorm.go +++ b/gorm.go @@ -346,7 +346,7 @@ func (db *DB) DB() (*sql.DB, error) { func (db *DB) getInstance() *DB { if db.clone > 0 { - tx := &DB{Config: db.Config} + tx := &DB{Config: db.Config, Error: db.Error} if db.clone == 1 { // clone with new statement