Relax a too strict debug assertion

This commit is contained in:
Marko Mäkelä 2017-09-23 20:34:53 +03:00
parent 41da3ca9cc
commit e62b57e4d0

View File

@ -396,7 +396,9 @@ dict_table_get_n_user_cols(
const dict_table_t* table) /*!< in: table */
{
ut_ad(table->magic_n == DICT_TABLE_MAGIC_N);
ut_ad(table->n_cols > DATA_N_SYS_COLS);
/* n_cols counts stored columns only. A table may contain
virtual columns and no user-specified stored columns at all. */
ut_ad(table->n_cols >= DATA_N_SYS_COLS);
return(table->n_cols - DATA_N_SYS_COLS);
}