Unverified Commit 8134a89e authored by astaxie's avatar astaxie Committed by GitHub

Merge pull request #3333 from akhedrane/patch-1

Return error when wrong filtering field
parents e342a009 0e4d954f
......@@ -928,7 +928,7 @@ func (d *dbBase) ReadBatch(q dbQuerier, qs *querySet, mi *modelInfo, cond *Condi
maps[fi.column] = true
}
} else {
panic(fmt.Errorf("wrong field/column name `%s`", col))
return -1, fmt.Errorf("wrong field/column name `%s`", col)
}
}
if hasRel {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment