From 7545b346aeb0274228bc7999316540e0aa33b3ff Mon Sep 17 00:00:00 2001 From: AilinKid <314806019@qq.com> Date: Tue, 19 Dec 2023 15:16:46 +0800 Subject: [PATCH] add general log Signed-off-by: AilinKid <314806019@qq.com> --- executor/explain_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/executor/explain_test.go b/executor/explain_test.go index 902f7c96eb2de..270bc42c3d1b5 100644 --- a/executor/explain_test.go +++ b/executor/explain_test.go @@ -324,6 +324,10 @@ func TestCheckActRowsWithUnistore(t *testing.T) { // testSuite1 use default mockstore which is unistore tk := testkit.NewTestKit(t, store) tk.MustExec("use test") + // set up general log for debugging. + tk.MustExec("set global tidb_general_log=1") + defer tk.MustExec("set global tidb_general_log=0") + tk.MustExec("set tidb_cost_model_version=2") tk.MustExec("drop table if exists t_unistore_act_rows") tk.MustExec("create table t_unistore_act_rows(a int, b int, index(a, b))")