@@ -1439,30 +1439,29 @@ func (b *PlanBuilder) buildAdmin(ctx context.Context, as *ast.AdminStmt) (Plan,
1439
1439
p .setSchemaAndNames (buildShowSlowSchema ())
1440
1440
ret = p
1441
1441
case ast .AdminReloadExprPushdownBlacklist :
1442
- return & ReloadExprPushdownBlacklist {}, nil
1442
+ ret = & ReloadExprPushdownBlacklist {}
1443
1443
case ast .AdminReloadOptRuleBlacklist :
1444
- return & ReloadOptRuleBlacklist {}, nil
1444
+ ret = & ReloadOptRuleBlacklist {}
1445
1445
case ast .AdminPluginEnable :
1446
- return & AdminPlugins {Action : Enable , Plugins : as .Plugins }, nil
1446
+ ret = & AdminPlugins {Action : Enable , Plugins : as .Plugins }
1447
1447
case ast .AdminPluginDisable :
1448
- return & AdminPlugins {Action : Disable , Plugins : as .Plugins }, nil
1448
+ ret = & AdminPlugins {Action : Disable , Plugins : as .Plugins }
1449
1449
case ast .AdminFlushBindings :
1450
- return & SQLBindPlan {SQLBindOp : OpFlushBindings }, nil
1450
+ ret = & SQLBindPlan {SQLBindOp : OpFlushBindings }
1451
1451
case ast .AdminCaptureBindings :
1452
- return & SQLBindPlan {SQLBindOp : OpCaptureBindings }, nil
1452
+ ret = & SQLBindPlan {SQLBindOp : OpCaptureBindings }
1453
1453
case ast .AdminEvolveBindings :
1454
- var err error
1455
1454
// The 'baseline evolution' only work in the test environment before the feature is GA.
1456
1455
if ! config .CheckTableBeforeDrop {
1457
- err = errors .Errorf ("Cannot enable baseline evolution feature, it is not generally available now" )
1456
+ return nil , errors .Errorf ("Cannot enable baseline evolution feature, it is not generally available now" )
1458
1457
}
1459
- return & SQLBindPlan {SQLBindOp : OpEvolveBindings }, err
1458
+ ret = & SQLBindPlan {SQLBindOp : OpEvolveBindings }
1460
1459
case ast .AdminReloadBindings :
1461
- return & SQLBindPlan {SQLBindOp : OpReloadBindings }, nil
1460
+ ret = & SQLBindPlan {SQLBindOp : OpReloadBindings }
1462
1461
case ast .AdminReloadStatistics :
1463
- return & Simple {Statement : as }, nil
1462
+ ret = & Simple {Statement : as }
1464
1463
case ast .AdminFlushPlanCache :
1465
- return & Simple {Statement : as }, nil
1464
+ ret = & Simple {Statement : as }
1466
1465
case ast .AdminSetBDRRole , ast .AdminUnsetBDRRole :
1467
1466
ret = & Simple {Statement : as }
1468
1467
case ast .AdminShowBDRRole :
0 commit comments