Ensure error checking is performed when generating statistics template

This commit is contained in:
Neil Macneale IV
2025-05-12 12:57:11 -07:00
parent 44d79e9c3b
commit 0f2d186efb

View File

@@ -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 {