Commit e87b6e70 authored by Amos Wenger's avatar Amos Wenger

fix bug in SelectOne

parent a8d6dbc5
Pipeline #10419 failed with stage
in 12 seconds
......@@ -43,6 +43,9 @@ func (c *Context) SelectOne(conn *sqlite.Conn, result interface{}, cond builder.
var columns []string
ms := c.NewScope(result).GetModelStruct()
for _, sf := range ms.StructFields {
if sf.Relationship != nil {
columns = append(columns, sf.DBName)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment