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