Skip to content

Commit

Permalink
fix:adjust code format
Browse files Browse the repository at this point in the history
  • Loading branch information
王瑞 committed Sep 25, 2022
1 parent cea0b62 commit c88a9f5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/datasource/sql/undo/base/undo.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@ func (m *BaseUndoLogManager) DBType() types.DBType {

// HasUndoLogTable check undo log table if exist
func (m *BaseUndoLogManager) HasUndoLogTable(ctx context.Context, conn *sql.Conn) (res bool, err error) {
_, err = conn.QueryContext(ctx, CheckUndoLogTableExistSql)
if err != nil {
if _, err = conn.QueryContext(ctx, CheckUndoLogTableExistSql); err != nil {
// 1146 mysql table not exist fault code
if e, ok := err.(*mysql.SQLError); ok && e.Code == mysql.ErrNoSuchTable {
return false, nil
Expand Down

0 comments on commit c88a9f5

Please sign in to comment.