From c61a42e3a0f8ead6775a59dfe16b7bb03f34207d Mon Sep 17 00:00:00 2001 From: Andres Taylor Date: Thu, 3 Oct 2024 15:56:14 +0200 Subject: [PATCH] dont use auto vschema if vschema provided Signed-off-by: Andres Taylor --- go/tester/tester.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/go/tester/tester.go b/go/tester/tester.go index f7a00cf..bd2b3be 100644 --- a/go/tester/tester.go +++ b/go/tester/tester.go @@ -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 }