Skip to content

Commit

Permalink
infoschema: set the correct type for REMAINING_SECONDS (pingcap#50421) (
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot committed Feb 1, 2024
1 parent ebc4107 commit e62ed60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/executor/infoschema_reader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ func TestForAnalyzeStatus(t *testing.T) {
" `FAIL_REASON` longtext DEFAULT NULL,\n" +
" `INSTANCE` varchar(512) DEFAULT NULL,\n" +
" `PROCESS_ID` bigint(64) unsigned DEFAULT NULL,\n" +
" `REMAINING_SECONDS` bigint(64) unsigned DEFAULT NULL,\n" +
" `REMAINING_SECONDS` varchar(512) DEFAULT NULL,\n" +
" `PROGRESS` double(22,6) DEFAULT NULL,\n" +
" `ESTIMATED_TOTAL_ROWS` bigint(64) unsigned DEFAULT NULL\n" +
") ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin"
Expand Down
2 changes: 1 addition & 1 deletion pkg/infoschema/tables.go
Original file line number Diff line number Diff line change
Expand Up @@ -1008,7 +1008,7 @@ var tableAnalyzeStatusCols = []columnInfo{
{name: "FAIL_REASON", tp: mysql.TypeLongBlob, size: types.UnspecifiedLength},
{name: "INSTANCE", tp: mysql.TypeVarchar, size: 512},
{name: "PROCESS_ID", tp: mysql.TypeLonglong, size: 64, flag: mysql.UnsignedFlag},
{name: "REMAINING_SECONDS", tp: mysql.TypeLonglong, size: 64, flag: mysql.UnsignedFlag},
{name: "REMAINING_SECONDS", tp: mysql.TypeVarchar, size: 512},
{name: "PROGRESS", tp: mysql.TypeDouble, size: 22, decimal: 6},
{name: "ESTIMATED_TOTAL_ROWS", tp: mysql.TypeLonglong, size: 64, flag: mysql.UnsignedFlag},
}
Expand Down

0 comments on commit e62ed60

Please sign in to comment.