Commit e62b57e4 authored by Marko Mäkelä's avatar Marko Mäkelä

Relax a too strict debug assertion

parent 41da3ca9
...@@ -396,7 +396,9 @@ dict_table_get_n_user_cols( ...@@ -396,7 +396,9 @@ dict_table_get_n_user_cols(
const dict_table_t* table) /*!< in: table */ const dict_table_t* table) /*!< in: table */
{ {
ut_ad(table->magic_n == DICT_TABLE_MAGIC_N); 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); return(table->n_cols - DATA_N_SYS_COLS);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment