1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

MDEV-9319 ALTER from a bigger to a smaller blob type truncates too much data

This commit is contained in:
Alexander Barkov
2015-12-29 14:17:31 +04:00
parent e126baafbc
commit e1b9be5417
10 changed files with 152 additions and 14 deletions

View File

@@ -29,9 +29,11 @@ select length(data) from t1;
length(data)
18874368
alter table t1 modify data blob;
Warnings:
Warning 1265 Data truncated for column 'data' at row 1
select length(data) from t1;
length(data)
0
65535
drop table t1;
CREATE TABLE t1 (data BLOB) ENGINE=myisam;
INSERT INTO t1 (data) VALUES (NULL);