Skip to content

Commit

Permalink
schema: sequence should always be the one row (pingcap#30784)
Browse files Browse the repository at this point in the history
  • Loading branch information
AilinKid authored Dec 28, 2021
1 parent e983d32 commit 0af4b77
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions executor/infoschema_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -577,9 +577,8 @@ func (e *memtableRetriever) setDataFromTables(ctx context.Context, sctx sessionc
}
if table.IsSequence() {
tableType = "SEQUENCE"
if rowCount == 0 {
rowCount = 1
}
// sequence is always 1 row regardless of stats.
rowCount = 1
}
if table.HasClusteredIndex() {
pkType = "CLUSTERED"
Expand Down

0 comments on commit 0af4b77

Please sign in to comment.