LinsRuis.HW1 6 months ago
parent
commit
c02bd228d6
  1. 2
      core/comms/xorms.go

2
core/comms/xorms.go

@ -17,7 +17,7 @@ func XormOneDb(db *gocloud.DBHelper, id, data interface{}, columns ...interface{
col := "id" col := "id"
if len(columns) > 0 { if len(columns) > 0 {
cols, ok := columns[0].(string) cols, ok := columns[0].(string)
if ok {
if ok && cols != "" {
col = cols col = cols
} else { } else {
ses = ses.Table(columns[0]) ses = ses.Table(columns[0])

Loading…
Cancel
Save