Browse Source

Updated.

develop
Mingcai SHEN 6 years ago
parent
commit
e09dde9e22
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      restlet/curd.go

+ 3
- 0
restlet/curd.go View File

@ -378,6 +378,9 @@ func (h DefaultCURDHandler) update(ctx RequestContext, url_params Parameters, qu
queryControl = qc
}
}
if len(updateCols)<1{
return Failure_Response(ERROR_BAD_REQUEST, "empty update columns...")
}
log.Debugln("DefaultCURDHandler.update> QueryControl:", queryControl)
var pk_mapping = _build_params_map(h.table, url_params, h.pks...)

Loading…
Cancel
Save