Merge pull request #3344 from akhedrane/patch-1

duo to #3278 numRow should be 0
This commit is contained in:
astaxie 2018-10-05 21:16:18 +08:00 committed by GitHub
commit 5b8e468a13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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