@@ -595,7 +595,7 @@ func (s *testEvaluatorSuite) TestSortByItem2Pb(c *C) {
595595 c .Assert (string (js ), Equals , "{\" expr\" :{\" tp\" :201,\" val\" :\" gAAAAAAAAAE=\" ,\" sig\" :0,\" field_type\" :{\" tp\" :5,\" flag\" :0,\" flen\" :-1,\" decimal\" :-1,\" collate\" :46,\" charset\" :\" \" }},\" desc\" :true}" )
596596}
597597
598- func (s * testEvaluatorSuite ) TestImplicitParameters (c * C ) {
598+ func (s * testEvaluatorSuite ) TestImplicitArgs (c * C ) {
599599 sc := new (stmtctx.StatementContext )
600600 client := new (mock.Client )
601601 dg := new (dataGen4Expr2PbTest )
@@ -607,7 +607,7 @@ func (s *testEvaluatorSuite) TestImplicitParameters(c *C) {
607607
608608 // InUnion flag is false in `BuildCastFunction` when `ScalarFuncSig_CastStringAsInt`
609609 cast := BuildCastFunction (mock .NewContext (), dg .genColumn (mysql .TypeString , 1 ), types .NewFieldType (mysql .TypeLonglong ))
610- c .Assert (cast .(* ScalarFunction ).Function .implicitParameters (), DeepEquals , []types.Datum {types .NewIntDatum (0 )})
610+ c .Assert (cast .(* ScalarFunction ).Function .implicitArgs (), DeepEquals , []types.Datum {types .NewIntDatum (0 )})
611611 expr := pc .ExprToPB (cast )
612612 c .Assert (expr .Sig , Equals , tipb .ScalarFuncSig_CastStringAsInt )
613613 c .Assert (len (expr .Val ), Greater , 0 )
@@ -617,14 +617,14 @@ func (s *testEvaluatorSuite) TestImplicitParameters(c *C) {
617617
618618 // InUnion flag is nil in `BuildCastFunction4Union` when `ScalarFuncSig_CastIntAsString`
619619 castInUnion := BuildCastFunction4Union (mock .NewContext (), dg .genColumn (mysql .TypeLonglong , 1 ), types .NewFieldType (mysql .TypeString ))
620- c .Assert (castInUnion .(* ScalarFunction ).Function .implicitParameters (), IsNil )
620+ c .Assert (castInUnion .(* ScalarFunction ).Function .implicitArgs (), IsNil )
621621 expr = pc .ExprToPB (castInUnion )
622622 c .Assert (expr .Sig , Equals , tipb .ScalarFuncSig_CastIntAsString )
623623 c .Assert (len (expr .Val ), Equals , 0 )
624624
625625 // InUnion flag is true in `BuildCastFunction4Union` when `ScalarFuncSig_CastStringAsInt`
626626 castInUnion = BuildCastFunction4Union (mock .NewContext (), dg .genColumn (mysql .TypeString , 1 ), types .NewFieldType (mysql .TypeLonglong ))
627- c .Assert (castInUnion .(* ScalarFunction ).Function .implicitParameters (), DeepEquals , []types.Datum {types .NewIntDatum (1 )})
627+ c .Assert (castInUnion .(* ScalarFunction ).Function .implicitArgs (), DeepEquals , []types.Datum {types .NewIntDatum (1 )})
628628 expr = pc .ExprToPB (castInUnion )
629629 c .Assert (expr .Sig , Equals , tipb .ScalarFuncSig_CastStringAsInt )
630630 c .Assert (len (expr .Val ), Greater , 0 )
0 commit comments