Commit 7b3e53b4 authored by marko's avatar marko

rec_get_converted_size_new(): Simplify and move a debug assertion.

parent 7fd3f2e4
...@@ -484,9 +484,9 @@ rec_get_converted_size_new( ...@@ -484,9 +484,9 @@ rec_get_converted_size_new(
} }
ut_ad(len <= col->len || col->mtype == DATA_BLOB); ut_ad(len <= col->len || col->mtype == DATA_BLOB);
ut_ad(!field->fixed_len || len == field->fixed_len);
if (field->fixed_len) { if (field->fixed_len) {
ut_ad(len == field->fixed_len);
} else if (len < 128 } else if (len < 128
|| (col->len < 256 && col->mtype != DATA_BLOB)) { || (col->len < 256 && col->mtype != DATA_BLOB)) {
size++; size++;
......
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