From 9680df54457a335d5ea5167e883874f5d943254d Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Wed, 2 May 2018 13:41:40 +0800 Subject: [PATCH] remove trace code --- engine.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine.go b/engine.go index f5af6d9d4..93a8d8dac 100644 --- a/engine.go +++ b/engine.go @@ -1108,7 +1108,7 @@ func (engine *Engine) idOfV(rv reflect.Value) (core.PK, error) { } fieldName = parts[1] } - fmt.Println(table.Name, fieldName, v) + pkField := v.FieldByName(fieldName) switch pkField.Kind() { case reflect.String: