diff --git a/dbms/tests/queries/0_stateless/00700_decimal_casts.reference b/dbms/tests/queries/0_stateless/00700_decimal_casts.reference index 1ab3b75a10a..6a574b6245b 100644 --- a/dbms/tests/queries/0_stateless/00700_decimal_casts.reference +++ b/dbms/tests/queries/0_stateless/00700_decimal_casts.reference @@ -127,3 +127,5 @@ 42.42 42.4200000 42.4200000000000000 42.420000000000000000000000000000000000 123456789 123456789123456789 12345678901234567890123456789012345678 +0.123456789 0.123456789123456789 +0.12345678901234567890123456789012345678 diff --git a/dbms/tests/queries/0_stateless/00700_decimal_casts.sql b/dbms/tests/queries/0_stateless/00700_decimal_casts.sql index a8c870f5c58..f2d0d63ffc2 100644 --- a/dbms/tests/queries/0_stateless/00700_decimal_casts.sql +++ b/dbms/tests/queries/0_stateless/00700_decimal_casts.sql @@ -92,4 +92,10 @@ SELECT CAST('123456789', 'Decimal(9,1)'); -- { serverError 69 } SELECT CAST('123456789123456789', 'Decimal(18,1)'); -- { serverError 69 } SELECT CAST('12345678901234567890123456789012345678', 'Decimal(38,1)'); -- { serverError 69 } +SELECT CAST('0.123456789', 'Decimal(9,9)'), CAST('0.123456789123456789', 'Decimal(18,18)'); +SELECT CAST('0.12345678901234567890123456789012345678', 'Decimal(38,38)'); +SELECT CAST('0.123456789', 'Decimal(9,8)'); -- { serverError 69 } +SELECT CAST('0.123456789123456789', 'Decimal(18,17)'); -- { serverError 69 } +SELECT CAST('0.12345678901234567890123456789012345678', 'Decimal(38,37)'); -- { serverError 69 } + DROP TABLE IF EXISTS test.decimal;