summaryrefslogtreecommitdiff
path: root/mysql-test/r
diff options
context:
space:
mode:
authorunknown <evgen@moonbone.local>2005-06-22 07:18:42 +0400
committerunknown <evgen@moonbone.local>2005-06-22 07:18:42 +0400
commita6c7fb455ae6114ae53be58c49d4ef7dbdcd5e3e (patch)
treeda44d153c0a60ceb5f7abf6e089ae58aca2d0274 /mysql-test/r
parentd785fc60ab902842bf68bfb827120b8015700a98 (diff)
downloadmariadb-git-a6c7fb455ae6114ae53be58c49d4ef7dbdcd5e3e.tar.gz
Fix bug #9728 decreased functionality in "on duplicate key update"
Remove changes made by bug fix #8147. They strips list of insert_table_list to only insert table, which results in error reported in bug #9728. Added flag to Item to resolve ambigous fields reported in bug #8147. sql/item.h: Fix bug#9728 decreased functionality in "on duplicate key update". sql/item.cc: Fix bug#9728 decreased functionality in "on duplicate key update" sql/sql_parse.cc: Fix bug#9728 decreased functionality in "on duplicate key update" sql/sql_base.cc: Fix bug#9728 decreased functionality in "on duplicate key update". sql/sql_yacc.yy: Fix bug#9728 decreased functionality in "on duplicate key update" mysql-test/t/insert_select.test: Test case for bug#9728 Decreased functionality in "on duplicate key update". mysql-test/r/insert_select.result: Test case for bug#9728 Decreased functionality in "on duplicate key update".
Diffstat (limited to 'mysql-test/r')
-rw-r--r--mysql-test/r/insert_select.result15
1 files changed, 15 insertions, 0 deletions
diff --git a/mysql-test/r/insert_select.result b/mysql-test/r/insert_select.result
index 082b7098a1a..69eb64f08ea 100644
--- a/mysql-test/r/insert_select.result
+++ b/mysql-test/r/insert_select.result
@@ -634,3 +634,18 @@ ff1 ff2
1 2
2 1
drop table t1, t2;
+create table t1 (a int unique);
+create table t2 (a int, b int);
+insert into t1 values (1),(2);
+insert into t2 values (1,2);
+select * from t1;
+a
+1
+2
+insert into t1 select t2.a from t2 on duplicate key update a= a + t2.b;
+select * from t1;
+a
+2
+3
+drop table t1;
+drop table t2;