rec_get_converted_size_new(): Simplify and move a debug assertion.

This commit is contained in:
marko 2007-05-29 07:25:16 +00:00
parent afeb156be6
commit c830c0ed21

View file

@ -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++;