summaryrefslogtreecommitdiff
path: root/mysql-test/t/update.test
diff options
context:
space:
mode:
authorsergefp@mysql.com <>2005-04-18 05:21:44 +0400
committersergefp@mysql.com <>2005-04-18 05:21:44 +0400
commita76ecc5bc78365a2ecdf1f96d9c238d5ecbe30c4 (patch)
tree666579fabdd2725c17ffedc83d49cbd6276c1daf /mysql-test/t/update.test
parent39f412d32950062a8a7cba2d32e1d8556e3b56ee (diff)
downloadmariadb-git-a76ecc5bc78365a2ecdf1f96d9c238d5ecbe30c4.tar.gz
Fix for BUG#9103:
Don't produce data truncation warnings from within cp_buffer_from_ref(). This function is only used to make index search tuples and data truncation that occurs here has no relation with truncated values being saved into tables.
Diffstat (limited to 'mysql-test/t/update.test')
-rw-r--r--mysql-test/t/update.test12
1 files changed, 12 insertions, 0 deletions
diff --git a/mysql-test/t/update.test b/mysql-test/t/update.test
index 8eb3a924ee3..6a90fb95760 100644
--- a/mysql-test/t/update.test
+++ b/mysql-test/t/update.test
@@ -189,3 +189,15 @@ insert into t1 values (0, '1');
update t1 set b = b + 1 where a = 0;
select * from t1;
drop table t1;
+
+# BUG#9103 "Erroneous data truncation warnings on multi-table updates"
+create table t1 (a int, b varchar(10), key b(b(5))) engine=myisam;
+create table t2 (a int, b varchar(10)) engine=myisam;
+insert into t1 values ( 1, 'abcd1e');
+insert into t1 values ( 2, 'abcd2e');
+insert into t2 values ( 1, 'abcd1e');
+insert into t2 values ( 2, 'abcd2e');
+analyze table t1,t2;
+update t1, t2 set t1.a = t2.a where t2.b = t1.b;
+show warnings;
+drop table t1, t2;