From 21a8623002c1d2d990fcc2265f19194e3232f67e Mon Sep 17 00:00:00 2001 From: Atallah khedrane Date: Sun, 30 Sep 2018 10:45:18 +0100 Subject: [PATCH] duo to #3278 numRow should be 0 --- orm/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orm/db.go b/orm/db.go index 61f747cd..cb807b5a 100644 --- a/orm/db.go +++ b/orm/db.go @@ -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 {