Skip to content

Commit 1ba1f62

Browse files
committed
fix bugs
1 parent c7f81fe commit 1ba1f62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

orm/query_get.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func (m Query[T]) GetCount() (int64, QueryResult) {
5858

5959
newQuery := NewQuery(tempTable, tempTable.dbs...)
6060

61-
res := newQuery.Select("count(*)").GetTo(&ret)
61+
res := newQuery.setErr(tempTable.err).Select("count(*)").GetTo(&ret)
6262
return ret, res
6363
}
6464
}

0 commit comments

Comments
 (0)