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

MDEV-6785 Wrong result on 2nd execution of PS with aggregate function, FROM SQ or MERGE view

a different fix for view.test --ps-protocol crash
(revert the old fix that has caused a regression)
This commit is contained in:
Sergei Golubchik
2014-11-18 22:25:41 +01:00
parent 303eec5774
commit a8bd285f7c
4 changed files with 30 additions and 3 deletions

View File

@ -5500,6 +5500,20 @@ a b a b a c
9 10 9 10 9 10
drop view v1;
drop table t1,t2;
create table t1 (i int not null);
insert into t1 values (1),(2);
create table t2 (j int not null);
insert into t2 values (11),(12);
create algorithm=merge view v3 as select t1.* from t2 left join t1 on (t2.j = t1.i);
prepare stmt from 'select count(v3.i) from t1, v3';
execute stmt;
count(v3.i)
0
execute stmt;
count(v3.i)
0
drop table t1, t2;
drop view v3;
# -----------------------------------------------------------------
# -- End of 10.0 tests.
# -----------------------------------------------------------------