Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
5.5(EOL), 10.0(EOL), 10.1(EOL), 10.2(EOL)
Description
DROP TABLE IF EXISTS t1;
|
CREATE TABLE t1 (a BLOB) ENGINE=MyISAM;
|
INSERT INTO t1 VALUES (REPEAT(0x61,65000));
|
SELECT LENGTH(a) FROM t1;
|
ALTER TABLE t1 MODIFY a TINYBLOB;
|
SELECT LENGTH(a) FROM t1;
|
returns 65000 before ALTER:
+-----------+
|
| LENGTH(a) |
|
+-----------+
|
| 65000 |
|
+-----------+
|
and returns 232 after ALTER:
+-----------+
|
| LENGTH(a) |
|
+-----------+
|
| 232 |
|
+-----------+
|
This looks wrong. The expected length after ALTER is 255.
It also does not produce any warnings on truncation. Probably it should.
Attachments
Issue Links
- blocks
-
MDEV-4912 Data type plugin API version 1
- Closed
- relates to
-
MDEV-13530 VARBINARY doesn't convert to to BLOB for sizes 65533, 65534 and 65535
- Closed