diff options
author | bar@noter.intranet.mysql.r18.ru <> | 2004-09-26 21:52:20 +0500 |
---|---|---|
committer | bar@noter.intranet.mysql.r18.ru <> | 2004-09-26 21:52:20 +0500 |
commit | 29b8c6b1e06e9c39c630a3a9e6551b5375ccbb8b (patch) | |
tree | f26c8af9295aa6db1f99ea7b32dc8962a52919db /mysql-test/t/bdb.test | |
parent | ef7bdbf4b8efd5d1d293e801939937a26fef6292 (diff) | |
download | mariadb-git-29b8c6b1e06e9c39c630a3a9e6551b5375ccbb8b.tar.gz |
bug #5723 length(varchar utf8 field) returns verying results
Diffstat (limited to 'mysql-test/t/bdb.test')
-rw-r--r-- | mysql-test/t/bdb.test | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mysql-test/t/bdb.test b/mysql-test/t/bdb.test index 7ee7d18439d..86214ecd5a8 100644 --- a/mysql-test/t/bdb.test +++ b/mysql-test/t/bdb.test @@ -897,3 +897,15 @@ commit; truncate t1; select * from t1; drop table t1; + +# +# Check that BDB works fine with a string which is +# longer than 255 bytes for multibyte characters. +# +SET NAMES utf8; +create table t1 (a varchar(255) character set utf8) engine=bdb; +set @a:= convert(repeat(_latin1 0xFF, 255) using utf8); +insert into t1 values (@a); +select a, length(a), char_length(a) from t1; +drop table t1; +SET NAMES latin1; |