Add test.

This commit is contained in:
Vitaly Baranov 2020-08-08 21:55:26 +03:00
parent 61c3735dfc
commit 7efd495c7e
2 changed files with 13 additions and 0 deletions

View File

@ -15,3 +15,7 @@ custom_b NULL
custom_c UInt64_50000
custom_d Float64_1.11
0 UInt8
test String
custom_compound.identifier.v1 \'test\'
CREATE SETTINGS PROFILE s1_01418 SETTINGS custom_compound.identifier.v2 = 100

View File

@ -23,3 +23,12 @@ SET custom_e = 0;
SELECT getSetting('custom_e') as v, toTypeName(v);
SET invalid_custom = 8; -- { serverError 115 } -- Setting is neither a builtin nor started with one of the registered prefixes for user-defined settings.
SELECT '';
SET custom_compound.identifier.v1 = 'test';
SELECT getSetting('custom_compound.identifier.v1') as v, toTypeName(v);
SELECT name, value FROM system.settings WHERE name = 'custom_compound.identifier.v1';
CREATE SETTINGS PROFILE s1_01418 SETTINGS custom_compound.identifier.v2 = 100;
SHOW CREATE SETTINGS PROFILE s1_01418;
DROP SETTINGS PROFILE s1_01418;