Skip to content

Commit

Permalink
MDEV-16365 Setting a column NOT NULL fails to return error for
Browse files Browse the repository at this point in the history
	NULL values when there is no DEFAULT

- Fixed typecasting failure for log->n_rows in row0log.cc
  • Loading branch information
Thirunarayanan committed Jun 25, 2018
1 parent 1ace3b3 commit 1ba5b38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/innobase/row/row0log.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 1ba5b38

Please sign in to comment.