diff options
author | unknown <pekka@mysql.com> | 2004-12-22 13:38:15 +0100 |
---|---|---|
committer | unknown <pekka@mysql.com> | 2004-12-22 13:38:15 +0100 |
commit | 2eb5ae4c3b7ff8923373d49db9eacaa0f5959c7b (patch) | |
tree | 583923d64fcab8abba73aacb58e18470a31ffe5a /mysql-test/t/ndb_blob.test | |
parent | 0a3590f6d08342512deecfe15e91424eb01c0be4 (diff) | |
download | mariadb-git-2eb5ae4c3b7ff8923373d49db9eacaa0f5959c7b.tar.gz |
ndb: bug#7340 fix
mysql-test/r/ndb_blob.result:
bug#7340 fix
mysql-test/t/ndb_blob.test:
bug#7340 fix
ndb/src/ndbapi/NdbConnection.cpp:
bug#7340 fix
ndb/src/ndbapi/NdbOperationDefine.cpp:
bug#7340 fix
Diffstat (limited to 'mysql-test/t/ndb_blob.test')
-rw-r--r-- | mysql-test/t/ndb_blob.test | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mysql-test/t/ndb_blob.test b/mysql-test/t/ndb_blob.test index 06ecbc66d97..96e38bfb58e 100644 --- a/mysql-test/t/ndb_blob.test +++ b/mysql-test/t/ndb_blob.test @@ -389,3 +389,17 @@ set autocommit=1; alter table t1 engine=myisam; select * from t1 order by a; drop table t1; + +# -- bug #7340 -- +create table t1 ( + id int(11) unsigned primary key NOT NULL auto_increment, + msg text NOT NULL +) engine=ndbcluster default charset=utf8; +insert into t1 (msg) values( +'Tries to validate (8 byte length + inline bytes) as UTF8 :( +Fast fix: removed validation for Text. It is not yet indexable +so bad data will not crash kernel. +Proper fix: Set inline bytes to multiple of mbmaxlen and +validate it (after the 8 byte length).'); +select * from t1; +drop table t1; |