Skip to content

Commit

Permalink
tuncate后清除表名,避免连坐
Browse files Browse the repository at this point in the history
  • Loading branch information
tobycroft committed Oct 1, 2021
1 parent 65bf07e commit 7a0894f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions orm.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ func (dba *Orm) Truncate() (err error) {
return
}
_, err = dba.Execute("TRUNCATE " + dba.table)
dba.ResetTable()
return
}

Expand Down

0 comments on commit 7a0894f

Please sign in to comment.