Add a test

This commit is contained in:
Alexey Milovidov 2021-06-15 03:28:57 +03:00
parent 7032998108
commit c12eebb566
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,5 @@
10000000000000000000
10000000000000000000
10000000000000000000
10000000000000000000
10000000000000000000

View File

@ -0,0 +1,15 @@
SELECT accurateCast(1e35, 'UInt32'); -- { serverError 70 }
SELECT accurateCast(1e35, 'UInt64'); -- { serverError 70 }
SELECT accurateCast(1e35, 'UInt128'); -- { serverError 70 }
SELECT accurateCast(1e35, 'UInt256'); -- { serverError 70 }
SELECT accurateCast(1e19, 'UInt64');
SELECT accurateCast(1e19, 'UInt128');
SELECT accurateCast(1e19, 'UInt256');
SELECT accurateCast(1e20, 'UInt64'); -- { serverError 70 }
SELECT accurateCast(1e20, 'UInt128'); -- { serverError 70 }
SELECT accurateCast(1e20, 'UInt256'); -- { serverError 70 }
SELECT accurateCast(1e19, 'Int64'); -- { serverError 70 }
SELECT accurateCast(1e19, 'Int128');
SELECT accurateCast(1e19, 'Int256');