@@ -83,23 +83,23 @@ func (s *testVarsutilSuite) TestVarsutil(c *C) {
8383
8484 c .Assert (SetSessionSystemVar (v , "character_set_results" , types.Datum {}), IsNil )
8585
86- // Test case for get TiDBSkipConstraintCheck session variable.
87- val , err = GetSessionSystemVar (v , variable .TiDBSkipConstraintCheck )
86+ // Test case for get TiDBImportingData session variable.
87+ val , err = GetSessionSystemVar (v , variable .TiDBImportingData )
8888 c .Assert (err , IsNil )
8989 c .Assert (val , Equals , "0" )
9090
91- // Test case for tidb_skip_constraint_check
92- c .Assert (v .SkipConstraintCheck , IsFalse )
93- SetSessionSystemVar (v , variable .TiDBSkipConstraintCheck , types .NewStringDatum ("0" ))
94- c .Assert (v .SkipConstraintCheck , IsFalse )
95- SetSessionSystemVar (v , variable .TiDBSkipConstraintCheck , types .NewStringDatum ("1" ))
96- c .Assert (v .SkipConstraintCheck , IsTrue )
97- SetSessionSystemVar (v , variable .TiDBSkipConstraintCheck , types .NewStringDatum ("0" ))
98- c .Assert (v .SkipConstraintCheck , IsFalse )
99-
100- // Test case for change TiDBSkipConstraintCheck session variable.
101- SetSessionSystemVar (v , variable .TiDBSkipConstraintCheck , types .NewStringDatum ("1" ))
102- val , err = GetSessionSystemVar (v , variable .TiDBSkipConstraintCheck )
91+ // Test case for tidb_import_data
92+ c .Assert (v .ImportingData , IsFalse )
93+ SetSessionSystemVar (v , variable .TiDBImportingData , types .NewStringDatum ("0" ))
94+ c .Assert (v .ImportingData , IsFalse )
95+ SetSessionSystemVar (v , variable .TiDBImportingData , types .NewStringDatum ("1" ))
96+ c .Assert (v .ImportingData , IsTrue )
97+ SetSessionSystemVar (v , variable .TiDBImportingData , types .NewStringDatum ("0" ))
98+ c .Assert (v .ImportingData , IsFalse )
99+
100+ // Test case for change TiDBImportingData session variable.
101+ SetSessionSystemVar (v , variable .TiDBImportingData , types .NewStringDatum ("1" ))
102+ val , err = GetSessionSystemVar (v , variable .TiDBImportingData )
103103 c .Assert (err , IsNil )
104104 c .Assert (val , Equals , "1" )
105105
0 commit comments