mirror of
https://github.com/MariaDB/server.git
synced 2026-04-27 18:55:31 +02:00
Bug #9728 fix merge
mysql-test/r/insert_select.result: Auto merged mysql-test/t/insert_select.test: Auto merged sql/item.cc: Auto merged sql/item.h: Auto merged sql/sql_base.cc: Manual merge sql/sql_parse.cc: Manual merge sql/sql_yacc.yy: Manual merge
This commit is contained in:
commit
f3a3e05249
7 changed files with 74 additions and 6 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue