diff --git a/gorp.go b/gorp.go index 4c08b494..e8ce73a4 100644 --- a/gorp.go +++ b/gorp.go @@ -356,7 +356,7 @@ func (t *TableMap) bindUpdate(elem reflect.Value) (bindInstance, error) { for y := range t.columns { col := t.columns[y] - if !col.isPK && !col.Transient { + if !col.isAutoIncr && !col.Transient { if x > 0 { s.WriteString(", ") }