Skip to content

Commit

Permalink
dont use auto vschema if vschema provided
Browse files Browse the repository at this point in the history
Signed-off-by: Andres Taylor <[email protected]>
  • Loading branch information
systay committed Oct 3, 2024
1 parent 37c2b3f commit c61a42e
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 c61a42e

Please sign in to comment.