mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
outer references in subqueries in INSERT
remove inconsistent limitation
This commit is contained in:
@ -751,3 +751,19 @@ REPLACE INTO v1 SET f = NULL;
|
||||
ERROR 22007: Truncated incorrect DOUBLE value: 'foo'
|
||||
DROP VIEW v1;
|
||||
DROP TABLE t1;
|
||||
create table t1 (a int default 5);
|
||||
insert t1 values (1);
|
||||
insert t1 values (a);
|
||||
insert t1 values ((select a+1));
|
||||
insert t1 set a=2;
|
||||
insert t1 set a=a+2;
|
||||
insert t1 set a=(select a+3);
|
||||
select * from t1;
|
||||
a
|
||||
1
|
||||
5
|
||||
6
|
||||
2
|
||||
7
|
||||
8
|
||||
drop table t1;
|
||||
|
Reference in New Issue
Block a user