mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
709356d473
Fixed that blobs >16M can be inserted/updated Fixed bug when doing CREATE TEMPORARY TABLE ... LIKE include/m_ctype.h: Changed wellformedlen to well_formed_len include/mysql.h: Fixed comment libmysql/libmysql.c: Fixed indentation libmysqld/lib_sql.cc: Fixed indentation mysql-test/r/ctype_utf8.result: updated warning numbers mysql-test/r/innodb.result: Moved test to right place mysql-test/r/myisam-blob.result: More test for blobs mysql-test/r/rpl000002.result: Move test to better place mysql-test/r/rpl_log.result: Move test to better place mysql-test/r/union.result: Move test to better place mysql-test/t/innodb.test: Moved test to right place mysql-test/t/myisam-blob.test: More test of blobs mysql-test/t/rpl000002.test: Move test to better place mysql-test/t/rpl_log.test: Move test to better place mysql-test/t/union.test: Move test to better place sql/field.cc: Changed wellformedlen to well_formed_len. Fixed that blobs >16M can be inserted/updated (new bug) sql/field.h: Code optimization sql/sql_lex.cc: Changed short variable names sql/sql_show.cc: Optimized quote handling sql/sql_table.cc: Fixed bug when doing CREATE TEMPORARY TABLE ... LIKE sql/sql_union.cc: Added comment strings/ctype-big5.c: Changed wellformedlen to well_formed_len strings/ctype-bin.c: Changed wellformedlen to well_formed_len strings/ctype-euc_kr.c: Changed wellformedlen to well_formed_len strings/ctype-gb2312.c: Changed wellformedlen to well_formed_len strings/ctype-gbk.c: Changed wellformedlen to well_formed_len strings/ctype-latin1.c: Changed wellformedlen to well_formed_len strings/ctype-mb.c: Changed wellformedlen to well_formed_len strings/ctype-simple.c: Changed wellformedlen to well_formed_len strings/ctype-sjis.c: Changed wellformedlen to well_formed_len strings/ctype-tis620.c: Changed wellformedlen to well_formed_len strings/ctype-ucs2.c: Changed wellformedlen to well_formed_len Indentation changes strings/ctype-ujis.c: Changed wellformedlen to well_formed_len strings/ctype-utf8.c: Changed wellformedlen to well_formed_len
44 lines
1.2 KiB
Text
44 lines
1.2 KiB
Text
drop table if exists t1;
|
|
CREATE TABLE t1 (data LONGBLOB) ENGINE=myisam;
|
|
INSERT INTO t1 (data) VALUES (NULL);
|
|
UPDATE t1 set data=repeat('a',18*1024*1024);
|
|
select length(data) from t1;
|
|
length(data)
|
|
18874368
|
|
delete from t1 where left(data,1)='a';
|
|
check table t1;
|
|
Table Op Msg_type Msg_text
|
|
test.t1 check status OK
|
|
truncate table t1;
|
|
INSERT INTO t1 (data) VALUES (repeat('a',1*1024*1024));
|
|
INSERT INTO t1 (data) VALUES (repeat('b',16*1024*1024-1024));
|
|
delete from t1 where left(data,1)='b';
|
|
check table t1;
|
|
Table Op Msg_type Msg_text
|
|
test.t1 check status OK
|
|
UPDATE t1 set data=repeat('c',17*1024*1024);
|
|
check table t1;
|
|
Table Op Msg_type Msg_text
|
|
test.t1 check status OK
|
|
delete from t1 where left(data,1)='c';
|
|
check table t1;
|
|
Table Op Msg_type Msg_text
|
|
test.t1 check status OK
|
|
INSERT INTO t1 set data=repeat('a',18*1024*1024);
|
|
select length(data) from t1;
|
|
length(data)
|
|
18874368
|
|
alter table t1 modify data blob;
|
|
select length(data) from t1;
|
|
length(data)
|
|
0
|
|
drop table t1;
|
|
CREATE TABLE t1 (data BLOB) ENGINE=myisam;
|
|
INSERT INTO t1 (data) VALUES (NULL);
|
|
UPDATE t1 set data=repeat('a',18*1024*1024);
|
|
Warnings:
|
|
Warning 1265 Data truncated for column 'data' at row 1
|
|
select length(data) from t1;
|
|
length(data)
|
|
65535
|
|
drop table t1;
|