mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
postmerge fix
This commit is contained in:
parent
75730fb37e
commit
61e96be77f
3 changed files with 6 additions and 4 deletions
|
@ -1424,7 +1424,6 @@ a
|
|||
1
|
||||
drop view v1;
|
||||
drop table t1;
|
||||
drop table t1,t2;
|
||||
create table t1 (a int);
|
||||
create table t2 (a int);
|
||||
create table t3 (a int);
|
||||
|
@ -1541,7 +1540,7 @@ insert into v3(b) values (10);
|
|||
insert into v3(a) select a from t2;
|
||||
insert into v3(b) select b from t2;
|
||||
Warnings:
|
||||
Warning 1263 Data truncated; NULL supplied to NOT NULL column 'a' at row 2
|
||||
Warning 1263 Column set to default value; NULL supplied to NOT NULL column 'a' at row 2
|
||||
insert into v3(a) values (1) on duplicate key update a=a+10000+VALUES(a);
|
||||
select * from t1;
|
||||
a b
|
||||
|
|
|
@ -1387,7 +1387,6 @@ insert ignore into v1 values (1) on duplicate key update a=2;
|
|||
select * from t1;
|
||||
drop view v1;
|
||||
drop table t1;
|
||||
drop table t1,t2;
|
||||
|
||||
#
|
||||
# merge of VIEW with several tables
|
||||
|
|
|
@ -567,7 +567,11 @@ static bool check_view_insertability(TABLE_LIST *view, ulong query_id)
|
|||
view->contain_auto_increment= 1;
|
||||
/* prepare unique test */
|
||||
field->field->query_id= other_query_id;
|
||||
*trans= field; // remove collation if we have it
|
||||
/*
|
||||
remove collation (or other transparent for update function) if we have
|
||||
it
|
||||
*/
|
||||
trans->item= field;
|
||||
}
|
||||
/* unique test */
|
||||
for (trans= trans_start; trans != trans_end; trans++)
|
||||
|
|
Loading…
Reference in a new issue