test for the bug 8580

This commit is contained in:
Denis Zhuravlev 2020-10-16 19:28:07 -03:00
parent 12bb7a05ba
commit b5004980ad
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1 @@
all tests passed

View File

@ -0,0 +1,7 @@
SELECT database FROM system.tables WHERE database LIKE '%' format Null;
SELECT database AS db FROM system.tables WHERE db LIKE '%' format Null;
SELECT CAST(database, 'String') AS db FROM system.tables WHERE db LIKE '%' format Null;
SELECT CAST('a string', 'Nullable(String)') AS str WHERE str LIKE '%' format Null;
SELECT CAST(database, 'Nullable(String)') AS ndb FROM system.tables WHERE ndb LIKE '%' format Null;
SELECT 'all tests passed';