mirror of
https://github.com/MariaDB/server.git
synced 2025-01-26 00:34:18 +01:00
rec_get_converted_size_new(): Simplify and move a debug assertion.
This commit is contained in:
parent
afeb156be6
commit
c830c0ed21
1 changed files with 1 additions and 1 deletions
|
@ -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++;
|
||||
|
|
Loading…
Add table
Reference in a new issue