test for issue-3998

This commit is contained in:
chertus 2019-02-11 22:33:04 +03:00
parent 805866e6b3
commit bbfd6c502c
2 changed files with 5 additions and 0 deletions

View File

@ -3,3 +3,5 @@
11 11
11 12
12 11
0
1

View File

@ -3,3 +3,6 @@ select s.a + 1 as a, s.a as b from (select 10 as a) s;
select s.a + 1 as a, s.a + 1 as b from (select 10 as a) s;
select s.a + 1 as b, s.a + 2 as a from (select 10 as a) s;
select s.a + 2 as b, s.a + 1 as a from (select 10 as a) s;
SELECT 0 as t FROM (SELECT 1 as t) as inn WHERE inn.t = 1;
SELECT sum(value) as value FROM (SELECT 1 as value) as data WHERE data.value > 0;