Skip to content

Commit 0af2454

Browse files
committed
runtime error: inf is outside the range of representable values of type 'unsigned long long'
1 parent 8d6699d commit 0af2454

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sql/sql_show.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7445,10 +7445,9 @@ static int get_schema_stat_record(THD *thd, TABLE_LIST *tables, TABLE *table,
74457445
statistics.
74467446
*/
74477447
KEY *keyinfo= show_table->key_info + i;
7448-
if (keyinfo->rec_per_key[j])
7448+
if (double arpk= keyinfo->actual_rec_per_key(j))
74497449
{
7450-
ha_rows records= (ha_rows) ((double) show_table->stat_records() /
7451-
keyinfo->actual_rec_per_key(j));
7450+
ha_rows records= (ha_rows) ((double) show_table->stat_records() / arpk);
74527451
table->field[9]->store((longlong) records, TRUE);
74537452
table->field[9]->set_notnull();
74547453
}

0 commit comments

Comments
 (0)