Added a test #2208

This commit is contained in:
Alexey Milovidov 2018-04-13 21:49:23 +03:00
parent bf5763e525
commit bc47a49d58
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,4 @@
1
2
1
2

View File

@ -0,0 +1,14 @@
USE test;
DROP TABLE IF EXISTS union;
create view union as select 1 as test union all select 2;
SELECT * FROM union ORDER BY test;
DETACH TABLE union;
ATTACH TABLE union;
SELECT * FROM union ORDER BY test;
DROP TABLE union;