Skip to content

Commit

Permalink
Merge pull request cockroachdb#14668 from vivekmenezes/alloc
Browse files Browse the repository at this point in the history
acceptance: set distsql for schema validation in allocator tests
  • Loading branch information
vivekmenezes authored Apr 6, 2017
2 parents fe5c546 + 6490b3c commit 6e824ae
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/acceptance/allocator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,12 @@ func (at *allocatorTest) ValidateSchemaChanges(ctx context.Context, t *testing.T
if err := db.QueryRow("SELECT cluster_logical_timestamp()").Scan(&now); err != nil {
t.Fatal(err)
}

// Set distsql for these queries because it's still not the default.
if _, err := db.Exec(`SET DISTSQL = on`); err != nil {
t.Fatal(err)
}

var eCount int64
q := fmt.Sprintf(`SELECT COUNT(*) FROM %s AS OF SYSTEM TIME %s`, tableName, now)
if err := db.QueryRow(q).Scan(&eCount); err != nil {
Expand Down

0 comments on commit 6e824ae

Please sign in to comment.