MDEV-16365 Setting a column NOT NULL fails to return error for

	NULL values when there is no DEFAULT

- Fixed typecasting failure for log->n_rows in row0log.cc
parent 1ace3b3f
......@@ -1624,7 +1624,7 @@ row_log_table_apply_convert_mrec(
Field* field = log->old_table->field[col_no];
field->set_warning(Sql_condition::WARN_LEVEL_WARN,
WARN_DATA_TRUNCATED, 1, log->n_rows);
WARN_DATA_TRUNCATED, 1, ulong(log->n_rows));
if (!log->allow_not_null) {
/* We got a NULL value for a NOT NULL column. */
......
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