ClickHouse/tests/queries/0_stateless/02426_to_string_nullable_fixedstring.sql

3 lines
211 B
SQL

SELECT CAST('a', 'Nullable(FixedString(1))') as s, toTypeName(s), toString(s);
SELECT toTypeName(s), toString(s) FROM (SELECT if(number % 3 = 0, NULL, toFixedString(toString(number), 1)) AS s from numbers(10))