mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge 10.11 into 11.0
This commit is contained in:
@ -4390,6 +4390,38 @@ dim1 dim2 dim3 p SUM(p)
|
||||
DROP VIEW v;
|
||||
# End of 10.4 tests
|
||||
#
|
||||
# MDEV-31277: 2-nd execution of PS to select from materialized view
|
||||
# specified as left join whose inner table is mergeable
|
||||
# derived containing a constant column
|
||||
#
|
||||
create table t1 (
|
||||
Election int(10) unsigned NOT NULL
|
||||
) engine=MyISAM;
|
||||
insert into t1 (Election) values (1), (4);
|
||||
create table t2 (
|
||||
VoteID int(10),
|
||||
ElectionID int(10),
|
||||
UserID int(10)
|
||||
);
|
||||
insert into t2 (ElectionID, UserID) values (2, 30), (3, 30);
|
||||
create view v1 as select * from t1
|
||||
left join ( select 'Y' AS Voted, ElectionID from t2 ) AS T
|
||||
on T.ElectionID = t1.Election
|
||||
limit 9;
|
||||
prepare stmt1 from "select * from v1";
|
||||
execute stmt1;
|
||||
Election Voted ElectionID
|
||||
1 NULL NULL
|
||||
4 NULL NULL
|
||||
execute stmt1;
|
||||
Election Voted ElectionID
|
||||
1 NULL NULL
|
||||
4 NULL NULL
|
||||
deallocate prepare stmt1;
|
||||
drop view v1;
|
||||
drop table t1, t2;
|
||||
# End of 10.5 tests
|
||||
#
|
||||
# MDEV-31143: view with ORDER BY used in query with rownum() in WHERE
|
||||
#
|
||||
create table t1 (id int primary key);
|
||||
|
Reference in New Issue
Block a user