1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-26 12:01:29 +00:00

duo to #3278 numRow should be 0

This commit is contained in:
Atallah khedrane 2018-09-30 10:45:18 +01:00 committed by GitHub
parent 0e4d954fa7
commit 21a8623002
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -928,7 +928,7 @@ func (d *dbBase) ReadBatch(q dbQuerier, qs *querySet, mi *modelInfo, cond *Condi
maps[fi.column] = true maps[fi.column] = true
} }
} else { } else {
return -1, fmt.Errorf("wrong field/column name `%s`", col) return 0, fmt.Errorf("wrong field/column name `%s`", col)
} }
} }
if hasRel { if hasRel {