Commit c830c0ed authored by marko's avatar marko

rec_get_converted_size_new(): Simplify and move a debug assertion.

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