mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-22855 Assertion `!field->prefix_len || field->fixed_len == field->prefix_len' failed in btr_node_ptr_max_size
Problem: ======== - InnoDB wrongly calulates the record size in btr_node_ptr_max_size() when prefix index of the column has to be stored externally. Fix: ==== - InnoDB should add the maximum field size to record size when the field is a fixed length one.
This commit is contained in:
@@ -20,4 +20,12 @@ WHERE table_schema = 'test' AND table_name = 't1';
|
||||
disconnect stop_purge;
|
||||
DROP TABLE t1;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-22855 Assertion (!field->prefix_len ||
|
||||
--echo # field->fixed_len == field->prefix_len)
|
||||
--echo # failed in btr_node_ptr_max_size
|
||||
--echo #
|
||||
CREATE TABLE t1(c CHAR(194) CHARACTER SET UTF32, KEY k1(c(193)))ENGINE=InnoDB;
|
||||
INSERT INTO t1 SET c='';
|
||||
DROP TABLE t1;
|
||||
--echo # End of 10.4 tests
|
||||
|
Reference in New Issue
Block a user