Skip to content

Commit a5bfe2f

Browse files
committed
Keep Error for new Session
1 parent bf0fd9b commit a5bfe2f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gorm.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ func (db *DB) Session(config *Session) *DB {
163163
tx = &DB{
164164
Config: &txConfig,
165165
Statement: db.Statement,
166+
Error: db.Error,
166167
clone: 1,
167168
}
168169
)

0 commit comments

Comments
 (0)