MDEV-40486 [fixup] Clamp max_length at MAX_FIELD_VARCHARLENGTH in Ite… - #5554
MDEV-40486 [fixup] Clamp max_length at MAX_FIELD_VARCHARLENGTH in Ite…#5554mariadb-YuchenPei wants to merge 2 commits into
Conversation
|
|
|
claude: Reviewed Findings:
The test/result changes themselves are consistent with the code change; the acknowledged |
f6433ca to
999b669
Compare
|
claude: Both commits found. Let me review them. Found both (the branch was force-updated: VerdictBoth changes are correct, and all three findings from the previous review are resolved. No correctness issues found in the new commits. Details of what I verified, then some nits. a046922 — the check is now on the produced vector and folded into the existing failure branch, so b33e137 — Also checked: Nits
|
b33e137 to
a591f33
Compare
…m_func_vec_fromtext::fix_length_and_dec
And move the length check in Item_func_vec_fromtext::val_str to later
This allows
create table t1 (v vector(64) not null);
insert into t1 select vec_fromtext(concat('[',group_concat(1),']')) from seq_1_to_64;
which was banned in the previous fix
bb0ac43, though this also introduces
the inconsistency(?) where
create table t1 as select vec_fromtext(concat('[',group_concat(1),']')) from seq_1_to_64;
still fails ER_TRUNCATED_WRONG_VALUE
a591f33 to
6774517
Compare
…m_func_vec_fromtext::fix_length_and_dec
This allows
create table t1 (v vector(64) not null);
insert into t1 select vec_fromtext(concat('[',group_concat(1),']')) from seq_1_to_64;
which was banned in the previous fix
bb0ac43, though this also introduces the inconsistency(?) where
create table t1 as select vec_fromtext(concat('[',group_concat(1),']')) from seq_1_to_64;
still fails ER_TRUNCATED_WRONG_VALUE
see updated tests
Pre-approved by: Oleksandr Byelkin sanja@mariadb.com