Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
admpub committed Jan 13, 2022
1 parent 49c696c commit a5e4280
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/sqlbuilder/relation.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ func buildCond(refVal reflect.Value, relations []string, pipes []Pipe) interface
func buildSelector(fieldInfo *reflectx.FieldInfo, sel Selector, mustColumnName string, hasMustCol *bool, dataTypes *map[string]string) Selector {
columns, ok := fieldInfo.Options[`columns`] // columns=col1:uint&col2:string&col3:uint64
if !ok || len(columns) == 0 {
if hasMustCol != nil {
*hasMustCol = true
}
return sel
}
cols := []interface{}{}
Expand Down

0 comments on commit a5e4280

Please sign in to comment.