Skip to content

Commit

Permalink
add general log
Browse files Browse the repository at this point in the history
Signed-off-by: AilinKid <314806019@qq.com>
  • Loading branch information
AilinKid committed Dec 19, 2023
1 parent 1ed1caa commit 7545b34
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions executor/explain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))")
Expand Down

0 comments on commit 7545b34

Please sign in to comment.