add tests for hasColumnInTable [#METR-23248]

This commit is contained in:
Pavel Kartavyy 2016-11-15 17:24:09 +03:00
parent 15e9741273
commit 766caff3dc
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,7 @@
1
1
1
1
0
0
0

View File

@ -0,0 +1,11 @@
DROP TABLE IF EXISTS has_column_in_table_test;
CREATE TABLE has_column_in_table_test (i Int64, s String, nest Nested(x UInt8, y UInt32)) ENGINE = Memory;
SELECT hasColumnInTable('default', 'has_column_in_table_test', 'i');
SELECT hasColumnInTable('default', 'has_column_in_table_test', 's');
SELECT hasColumnInTable('default', 'has_column_in_table_test', 'nest.x');
SELECT hasColumnInTable('default', 'has_column_in_table_test', 'nest.y');
SELECT hasColumnInTable('default', 'has_column_in_table_test', 'nest');
SELECT hasColumnInTable('default', 'has_column_in_table_test', 'nest.not_existing');
SELECT hasColumnInTable('default', 'has_column_in_table_test', 'not_existing');