Skip to content

Commit

Permalink
Merge pull request #32 from vitessio/fix
Browse files Browse the repository at this point in the history
dont use auto vschema if vschema provided
  • Loading branch information
frouioui authored Oct 3, 2024
2 parents 37c2b3f + c61a42e commit 027c519
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion go/tester/tester.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,11 @@ func NewTester(
panic(err.Error())
}
t.curr = mcmp
t.qr = factory.NewQueryRunner(reporter, t.handleCreateTable, mcmp)
createTableHandler := t.handleCreateTable
if !t.autoVSchema() {
createTableHandler = func(*sqlparser.CreateTable) func() { return func() {} }
}
t.qr = factory.NewQueryRunner(reporter, createTableHandler, mcmp)

return t
}
Expand Down

0 comments on commit 027c519

Please sign in to comment.