Skip to content

Commit

Permalink
This is an automated cherry-pick of pingcap#54043
Browse files Browse the repository at this point in the history
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
  • Loading branch information
xhebox authored and ti-chi-bot committed Jul 1, 2024
1 parent 1c5016d commit 4a336f4
Show file tree
Hide file tree
Showing 2 changed files with 2,957 additions and 0 deletions.
8 changes: 8 additions & 0 deletions executor/show.go
Original file line number Diff line number Diff line change
Expand Up @@ -1833,7 +1833,15 @@ func (e *ShowExec) fetchShowWarnings(errOnly bool) error {
sqlErr := terror.ToSQLError(x)
e.appendRow([]interface{}{w.Level, int64(sqlErr.Code), sqlErr.Message})
default:
<<<<<<< HEAD:executor/show.go
e.appendRow([]interface{}{w.Level, int64(mysql.ErrUnknown), warn.Error()})
=======
var err string
if warn != nil {
err = warn.Error()
}
e.appendRow([]any{w.Level, int64(mysql.ErrUnknown), err})
>>>>>>> 3c46a1e072c (*: panic guard for warnings (#54043)):pkg/executor/show.go
}
}
return nil
Expand Down
Loading

0 comments on commit 4a336f4

Please sign in to comment.