mirror of
https://github.com/dolthub/dolt.git
synced 2026-02-11 10:33:08 -06:00
Ensure error checking is performed when generating statistics template
This commit is contained in:
@@ -443,10 +443,9 @@ func (sc *StatsController) updateTable(ctx *sql.Context, newStats *rootStats, ta
|
||||
continue
|
||||
}
|
||||
var idx durable.Index
|
||||
var err error
|
||||
var prollyMap prolly.Map
|
||||
var template stats.Statistic
|
||||
if sc.execWithOptionalRateLimit(ctx, bypassRateLimit, func() (err error) {
|
||||
if err := sc.execWithOptionalRateLimit(ctx, bypassRateLimit, func() (err error) {
|
||||
if strings.EqualFold(sqlIdx.ID(), "PRIMARY") {
|
||||
idx, err = dTab.GetRowData(ctx)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user