1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

postreview fix

mysql-test/r/view.result:
  forgoten test changes
sql/sql_parse.cc:
  post review fix
This commit is contained in:
unknown
2005-02-22 12:43:49 +02:00
parent e80b5dad7d
commit b4956bd313
2 changed files with 10 additions and 0 deletions

View File

@ -1770,3 +1770,11 @@ two 1025,2025,3025
two 1050,1050
drop view v1;
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'
select s2 from v1 vq1 where 2 = (select count(*) aa from v1 vq2 having vq1.s2 = aa);
s2
drop view v1;
drop table t1;