mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 11:27:39 +02:00
merge with local tree
This commit is contained in:
commit
dd1d9adbb0
3 changed files with 41 additions and 0 deletions
|
|
@ -145,5 +145,24 @@ insert into t1 values(default);
|
|||
drop view v1;
|
||||
drop table t1;
|
||||
|
||||
#
|
||||
# Bug #39002: crash with
|
||||
# INSERT ... SELECT ... ON DUPLICATE KEY UPDATE col=DEFAULT
|
||||
#
|
||||
|
||||
create table t1 (a int unique);
|
||||
create table t2 (b int default 10);
|
||||
insert into t1 (a) values (1);
|
||||
insert into t2 (b) values (1);
|
||||
|
||||
insert into t1 (a) select b from t2 on duplicate key update a=default;
|
||||
select * from t1;
|
||||
|
||||
insert into t1 (a) values (1);
|
||||
insert into t1 (a) select b from t2 on duplicate key update a=default(b);
|
||||
select * from t1;
|
||||
|
||||
drop table t1, t2;
|
||||
|
||||
--echo End of 5.0 tests.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue