summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorunknown <konstantin@mysql.com>2006-03-04 22:33:19 +0300
committerunknown <konstantin@mysql.com>2006-03-04 22:33:19 +0300
commit2fe8095662044f2a0299050106ddf36e451506fe (patch)
tree977ed990841c47de337c465c743fecc3cb2014ce /mysql-test
parent93b7fe4d7d53e1233b5af24d3e3df22b0a1167db (diff)
parentea9ea952be77d51db158df54b8ac627c73ff8713 (diff)
downloadmariadb-git-2fe8095662044f2a0299050106ddf36e451506fe.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/opt/local/work/mysql-4.1-root mysql-test/r/heap.result: Auto merged mysql-test/t/heap.test: Auto merged
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/r/ps.result14
-rw-r--r--mysql-test/t/ps.test23
2 files changed, 36 insertions, 1 deletions
diff --git a/mysql-test/r/ps.result b/mysql-test/r/ps.result
index ba9336c20bb..e94c2952893 100644
--- a/mysql-test/r/ps.result
+++ b/mysql-test/r/ps.result
@@ -733,3 +733,17 @@ count(*)
5
deallocate prepare stmt;
drop table t1;
+prepare stmt from 'create table t1 (a varchar(10) character set utf8)';
+execute stmt;
+insert into t1 (a) values (repeat('a', 20));
+select length(a) from t1;
+length(a)
+10
+drop table t1;
+execute stmt;
+insert into t1 (a) values (repeat('a', 20));
+select length(a) from t1;
+length(a)
+10
+drop table t1;
+deallocate prepare stmt;
diff --git a/mysql-test/t/ps.test b/mysql-test/t/ps.test
index b0755d06414..af885a5c02f 100644
--- a/mysql-test/t/ps.test
+++ b/mysql-test/t/ps.test
@@ -763,5 +763,26 @@ execute stmt using @like;
deallocate prepare stmt;
drop table t1;
-# End of 4.1 tests
+#
+# Bug#13134 "Length of VARCHAR() utf8 column is increasing when table is
+# recreated with PS/SP"
+#
+
+prepare stmt from 'create table t1 (a varchar(10) character set utf8)';
+execute stmt;
+--disable_warnings
+insert into t1 (a) values (repeat('a', 20));
+--enable_warnings
+select length(a) from t1;
+drop table t1;
+execute stmt;
+--disable_warnings
+insert into t1 (a) values (repeat('a', 20));
+--enable_warnings
+# Check that the data is truncated to the same length
+select length(a) from t1;
+drop table t1;
+deallocate prepare stmt;
+
+# End of 4.1 tests