added test to former WITH clause in SELECT query

This commit is contained in:
Nikolai Kochetov 2017-08-10 17:48:13 +03:00 committed by alexey-milovidov
parent 37b6c98752
commit ac87cb035f
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,6 @@
16 2 4
16 4
16 2 4
16 4
string_abc
string_abc

View File

@ -0,0 +1,8 @@
with pow(2,2) as four select pow(four, 2), 2 as two, pow(two, 2);
select `pow(four, 2)`, `pow(2, 2)` from (with pow(2,2) as four select pow(four, 2), 2 as two, pow(two, 2));
with (select pow(2,2)) as four select pow(four, 2), 2 as two, pow(two, 2);
select `pow(four, 2)`, `pow(2, 2)` from (with (select pow(2,2)) as four select pow(four, 2), 2 as two, pow(two, 2));
with 'string' as str select str || '_abc';
select `concat(str, \'_abc\')` from (with 'string' as str select str || '_abc');