Skip to content

Commit 21fb933

Browse files
committed
add test cases
1 parent d79b426 commit 21fb933

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

pkg/session/bootstrap_test.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2481,6 +2481,20 @@ func TestTiDBUpgradeToVer212(t *testing.T) {
24812481
MustExec(t, seCurVer, "select sample_sql, start_time, plan_digest from mysql.tidb_runaway_queries")
24822482
}
24832483

2484+
func TestIssue61890(t *testing.T) {
2485+
store, dom := CreateStoreAndBootstrap(t)
2486+
defer func() { require.NoError(t, store.Close()) }()
2487+
2488+
s1 := CreateSessionAndSetID(t, store)
2489+
MustExec(t, s1, "drop table mysql.global_variables")
2490+
MustExec(t, s1, "create table mysql.global_variables(`VARIABLE_NAME` varchar(64) NOT NULL PRIMARY KEY clustered, `VARIABLE_VALUE` varchar(16383) DEFAULT NULL)")
2491+
2492+
s2 := CreateSessionAndSetID(t, store)
2493+
initGlobalVariableIfNotExists(s2, variable.TiDBEnableINLJoinInnerMultiPattern, variable.Off)
2494+
2495+
dom.Close()
2496+
}
2497+
24842498
func TestIndexJoinMultiPatternByUpgrade650To840(t *testing.T) {
24852499
ctx := context.Background()
24862500
store, dom := CreateStoreAndBootstrap(t)

0 commit comments

Comments
 (0)