LinsRuis.HW1 3 months ago
parent
commit
69c45a27f7
  1. 8
      core/comms/xorms.go

8
core/comms/xorms.go

@ -24,12 +24,16 @@ func XormOneDb(db *gocloud.DBHelper, id, data interface{}, columns ...interface{
var tb interface{} var tb interface{}
var tbcol interface{} var tbcol interface{}
if okkey { if okkey {
if len(columns) > 2 && columns[1] != nil && columns[2] != nil {
if len(columns) > 2 {
if columns[1] != nil && columns[2] != nil {
tb = columns[1] tb = columns[1]
tbcol = columns[2] tbcol = columns[2]
} else if len(columns) > 1 && columns[1] != nil {
}
} else if len(columns) > 1 {
if columns[1] != nil {
tbcol = columns[1] tbcol = columns[1]
} }
}
} else { } else {
if len(columns) > 1 && columns[1] != nil { if len(columns) > 1 && columns[1] != nil {
tb = columns[0] tb = columns[0]

Loading…
Cancel
Save