Simplify TableRowsCount func logic

This commit is contained in:
Dan Sosedoff
2018-12-12 13:56:08 -06:00
parent 2db5ce544f
commit 7917c2ad35
2 changed files with 13 additions and 10 deletions

View File

@@ -301,7 +301,7 @@ func testTableRowsCount(t *testing.T) {
func testTableRowsCountWithLargeTable(t *testing.T) {
var count int64 = 100010
testClient.db.MustExec(`create table large_table as select s from generate_Series(1,100010) s;`)
testClient.db.MustExec(`CREATE TABLE large_table AS SELECT s FROM generate_Series(1,100010) s;`)
testClient.db.MustExec(`VACUUM large_table;`)
res, err := testClient.TableRowsCount("large_table", RowsOptions{})