diff --git a/sqle/driver/v2/driver_grpc_server.go b/sqle/driver/v2/driver_grpc_server.go index 7a11ae172..6858ccc14 100644 --- a/sqle/driver/v2/driver_grpc_server.go +++ b/sqle/driver/v2/driver_grpc_server.go @@ -115,7 +115,7 @@ func (d *DriverGrpcServer) Backup(ctx context.Context, req *protoV2.BackupReq) ( return &protoV2.BackupRes{}, err } res, err := driver.Backup(ctx, &BackupReq{ - BackupStrategy: req.BackupStrategy.String(), + BackupStrategy: ConvertProtoBackupStrategyToDriver(req.BackupStrategy), Sql: req.Sql, BackupMaxRows: req.BackupMaxRows, })