Merge pull request #64 from fuzzac/master

Fixed double logging of UPDATE and DELETE commands.
This commit is contained in:
Jinzhu 2014-02-21 10:29:23 +08:00
commit 0156c26cfa
2 changed files with 0 additions and 4 deletions

View File

@ -10,8 +10,6 @@ func BeforeDelete(scope *Scope) {
}
func Delete(scope *Scope) {
defer scope.Trace(time.Now())
if !scope.HasError() {
if !scope.Search.Unscope && scope.HasColumn("DeletedAt") {
scope.Raw(

View File

@ -41,8 +41,6 @@ func UpdateTimeStampWhenUpdate(scope *Scope) {
}
func Update(scope *Scope) {
defer scope.Trace(time.Now())
if !scope.HasError() {
var sqls []string