CREATE TABLE t1 (
pk INT AUTO_INCREMENT PRIMARY KEY,
b BLOB ,
b0 BLOB(0) ,
b1 BLOB(1) ,
b300 BLOB(300) ,
bm BLOB(65535) ,
b70k BLOB(70000) ,
b17m BLOB(17000000) ,
t TINYBLOB ,
m MEDIUMBLOB ,
l LONGBLOB 
) ENGINE=rocksdb;
SHOW COLUMNS IN t1;
Field	Type	Null	Key	Default	Extra
pk	int(11)	NO	PRI	NULL	auto_increment
b	blob	YES		NULL	
b0	blob	YES		NULL	
b1	tinyblob	YES		NULL	
b300	blob	YES		NULL	
bm	blob	YES		NULL	
b70k	mediumblob	YES		NULL	
b17m	longblob	YES		NULL	
t	tinyblob	YES		NULL	
m	mediumblob	YES		NULL	
l	longblob	YES		NULL	
INSERT INTO t1 (b,b0,b1,b300,bm,b70k,b17m,t,m,l) VALUES
('','','','','','','','','',''),
('a','b','c','d','e','f','g','h','i','j'),
('test1','test2','test3','test4','test5','test6','test7','test8','test9','test10'),
( REPEAT('a',65535), REPEAT('b',65535), REPEAT('c',255), REPEAT('d',65535), REPEAT('e',65535), REPEAT('f',1048576), HEX(REPEAT('g',1048576)), REPEAT('h',255), REPEAT('i',1048576), HEX(REPEAT('j',1048576)) );
SELECT LENGTH(b), LENGTH(b0), LENGTH(b1), LENGTH(b300), LENGTH(bm), LENGTH(b70k), LENGTH(b17m), LENGTH(t), LENGTH(m), LENGTH(l) FROM t1;
LENGTH(b)	LENGTH(b0)	LENGTH(b1)	LENGTH(b300)	LENGTH(bm)	LENGTH(b70k)	LENGTH(b17m)	LENGTH(t)	LENGTH(m)	LENGTH(l)
0	0	0	0	0	0	0	0	0	0
1	1	1	1	1	1	1	1	1	1
5	5	5	5	5	5	5	5	5	6
65535	65535	255	65535	65535	1048576	2097152	255	1048576	2097152
INSERT INTO t1 (b,b0,b1,b300,bm,b70k,b17m,t,m,l) VALUES
( REPEAT('a',65536), REPEAT('b',65536), REPEAT('c',256), REPEAT('d',65536), REPEAT('e',65536), REPEAT('f',1048576), REPEAT('g',1048576), REPEAT('h',256), REPEAT('i',1048576), REPEAT('j',1048576) );
ERROR 22001: Data too long for column 'b' at row 1
set @orig_sql_mode=@@session.sql_mode;
set session sql_mode="";
Warnings:
Warning	3090	Changing sql mode 'NO_AUTO_CREATE_USER' is deprecated. It will be removed in a future release.
INSERT INTO t1 (b,b0,b1,b300,bm,b70k,b17m,t,m,l) VALUES
( REPEAT('a',65536), REPEAT('b',65536), REPEAT('c',256), REPEAT('d',65536), REPEAT('e',65536), REPEAT('f',1048576), REPEAT('g',1048576), REPEAT('h',256), REPEAT('i',1048576), REPEAT('j',1048576) );
Warnings:
Warning	1265	Data truncated for column 'b' at row 1
Warning	1265	Data truncated for column 'b0' at row 1
Warning	1265	Data truncated for column 'b1' at row 1
Warning	1265	Data truncated for column 'b300' at row 1
Warning	1265	Data truncated for column 'bm' at row 1
Warning	1265	Data truncated for column 't' at row 1
set session sql_mode=@orig_sql_mode;
Warnings:
Warning	3090	Changing sql mode 'NO_AUTO_CREATE_USER' is deprecated. It will be removed in a future release.
SELECT LENGTH(b), LENGTH(b0), LENGTH(b1), LENGTH(b300), LENGTH(bm), LENGTH(b70k), LENGTH(b17m), LENGTH(t), LENGTH(m), LENGTH(l) FROM t1;
LENGTH(b)	LENGTH(b0)	LENGTH(b1)	LENGTH(b300)	LENGTH(bm)	LENGTH(b70k)	LENGTH(b17m)	LENGTH(t)	LENGTH(m)	LENGTH(l)
0	0	0	0	0	0	0	0	0	0
1	1	1	1	1	1	1	1	1	1
5	5	5	5	5	5	5	5	5	6
65535	65535	255	65535	65535	1048576	1048576	255	1048576	1048576
65535	65535	255	65535	65535	1048576	2097152	255	1048576	2097152
ALTER TABLE t1 ADD COLUMN bbb BLOB(4294967296);
ERROR 42000: Display width out of range for column 'bbb' (max = 4294967295)
DROP TABLE t1;
