Use EstimatedTableRowsCount only for postgresql
This commit is contained in:
parent
d603b293d8
commit
8748f07167
@ -241,7 +241,7 @@ func (client *Client) TableRowsCount(table string, opts RowsOptions) (*Result, e
|
||||
|
||||
if opts.Where != "" {
|
||||
sql += fmt.Sprintf(" WHERE %s", opts.Where)
|
||||
} else {
|
||||
} else if client.serverType == postgresType {
|
||||
tableInfo, err := client.TableInfo(table)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Loading…
x
Reference in New Issue
Block a user