1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Merge branch '11.2' into 11.4

This commit is contained in:
Oleksandr Byelkin
2024-10-30 09:24:04 +01:00
734 changed files with 10187 additions and 4442 deletions

View File

@ -43,13 +43,13 @@ show create view t1;
ERROR HY000: 'test.t1' is not of type 'VIEW'
drop table t1;
select a from v1;
ERROR 42S22: Unknown column 'a' in 'field list'
ERROR 42S22: Unknown column 'a' in 'SELECT'
select v1.a from v1;
ERROR 42S22: Unknown column 'v1.a' in 'field list'
ERROR 42S22: Unknown column 'v1.a' in 'SELECT'
select b from v1;
ERROR 42S22: Unknown column 'b' in 'field list'
ERROR 42S22: Unknown column 'b' in 'SELECT'
select v1.b from v1;
ERROR 42S22: Unknown column 'v1.b' in 'field list'
ERROR 42S22: Unknown column 'v1.b' in 'SELECT'
explain extended select c from v1;
id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL 5 100.00
@ -73,9 +73,9 @@ id select_type table type possible_keys key key_len ref rows filtered Extra
Warnings:
Note 1003 /* select#1 */ select `v2`.`c` AS `c` from `test`.`v2`
create view v3 (c) as select a+1 from v1;
ERROR 42S22: Unknown column 'a' in 'field list'
ERROR 42S22: Unknown column 'a' in 'SELECT'
create view v3 (c) as select b+1 from v1;
ERROR 42S22: Unknown column 'b' in 'field list'
ERROR 42S22: Unknown column 'b' in 'SELECT'
create view v3 (c) as select c+1 from v1;
select c from v3;
c
@ -1593,7 +1593,7 @@ drop table t1;
create table t1 (s1 int, s2 char);
create view v1 as select s1, s2 from t1;
select s2 from v1 vq1 where 2 = (select count(*) from v1 vq2 having vq1.s2 = vq2.s2);
ERROR 42S22: Unknown column 'vq2.s2' in 'having clause'
ERROR 42S22: Unknown column 'vq2.s2' in 'HAVING'
select s2 from v1 vq1 where 2 = (select count(*) aa from v1 vq2 having vq1.s2 = aa);
s2
drop view v1;
@ -2517,7 +2517,7 @@ blank
not blank
not blank
Warnings:
Warning 1052 Column 'x' in group statement is ambiguous
Warning 1052 Column 'x' in GROUP BY is ambiguous
SELECT IF(x IS NULL, 'blank', 'not blank') AS x FROM v1;
x
blank
@ -2534,7 +2534,7 @@ blank
not blank
not blank
Warnings:
Warning 1052 Column 'x' in group statement is ambiguous
Warning 1052 Column 'x' in GROUP BY is ambiguous
DROP VIEW v1;
DROP TABLE t1;
drop table if exists t1;
@ -6036,7 +6036,7 @@ f1 f2
1 20
drop table t1, t2;
SELECT 1 FROM (SELECT 1 as a) AS b HAVING (SELECT `SOME_GARBAGE`.b.a)=1;
ERROR 42S22: Unknown column 'SOME_GARBAGE.b.a' in 'field list'
ERROR 42S22: Unknown column 'SOME_GARBAGE.b.a' in 'SELECT'
#
# MDEV-10035: DBUG_ASSERT on CREATE VIEW v1 AS SELECT * FROM t1
# FOR UPDATE
@ -6951,11 +6951,11 @@ CREATE TABLE t2 (b int);
INSERT INTO t2 VALUES (2),(3);
CREATE TABLE t3 (c int);
CREATE VIEW v1 AS SELECT * FROM t1 JOIN t2 ON t1.x > t2.b;
ERROR 42S22: Unknown column 't1.x' in 'on clause'
ERROR 42S22: Unknown column 't1.x' in 'ON'
INSERT INTO t3 SELECT * FROM t1 JOIN t2 ON t1.x > t2.b;
ERROR 42S22: Unknown column 't1.x' in 'on clause'
ERROR 42S22: Unknown column 't1.x' in 'ON'
CREATE TABLE t4 AS SELECT * FROM t1 JOIN t2 ON t1.x > t2.b;
ERROR 42S22: Unknown column 't1.x' in 'on clause'
ERROR 42S22: Unknown column 't1.x' in 'ON'
DROP TABLE t1,t2,t3;
#
# MDEV-29088: view specification contains unknown column in ON condition
@ -6965,10 +6965,10 @@ create table t2 (b int);
create table t3 (c int);
create view v as
select * from t1 left join t2 on t1.a=t2.b and t1.a in (select d from t3);
ERROR 42S22: Unknown column 'd' in 'field list'
ERROR 42S22: Unknown column 'd' in 'SELECT'
create algorithm=merge view v as
select * from t1 left join t2 on t1.a=t2.b and t1.a in (select d from t3);
ERROR 42S22: Unknown column 'd' in 'field list'
ERROR 42S22: Unknown column 'd' in 'SELECT'
drop table t1,t2,t3;
#
# MDEV-31189: Server crash or assertion failure in upon 2nd