mirror of https://github.com/go-gorm/gorm.git
make count works
This commit is contained in:
parent
5fd2e0d54f
commit
ae68c0fb47
2
main.go
2
main.go
|
@ -228,7 +228,7 @@ func (s *DB) Pluck(column string, value interface{}) *DB {
|
|||
}
|
||||
|
||||
func (s *DB) Count(value interface{}) *DB {
|
||||
return s.do(s.Value).count(value).db
|
||||
return s.NewScope(s.Value).count(value).db
|
||||
}
|
||||
|
||||
func (s *DB) Table(name string) *DB {
|
||||
|
|
Loading…
Reference in New Issue