Skip to content

Commit 34945e6

Browse files
committed
fix
1 parent 155b204 commit 34945e6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

logservice/schemastore/persist_storage_ddl_handlers.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import (
1818
"errors"
1919
"fmt"
2020
"strings"
21+
"unicode"
2122

2223
"github.com/pingcap/log"
2324
"github.com/pingcap/ticdc/pkg/common"
@@ -2843,7 +2844,7 @@ func rebuildCreateTablesQueries(query string, tableInfos []*model.TableInfo, sto
28432844
return nil, cerror.WrapError(cerror.ErrTiDBUnexpectedJobMeta, err)
28442845
}
28452846

2846-
query := queryBuilder.String()
2847+
query := strings.TrimRightFunc(queryBuilder.String(), unicode.IsSpace)
28472848
if !strings.HasSuffix(query, ";") {
28482849
query += ";"
28492850
}

0 commit comments

Comments
 (0)