add int8 int16 int32 int64 and tests

This commit is contained in:
Memo 2022-04-19 14:38:16 +08:00
parent 3979f858fe
commit 8d4e433c7d
3 changed files with 31 additions and 0 deletions

View File

@ -311,6 +311,10 @@ public:
tryExecuteUIntOrInt<UInt64>(column, res_column) ||
tryExecuteUIntOrInt<UInt128>(column, res_column) ||
tryExecuteUIntOrInt<UInt256>(column, res_column) ||
tryExecuteUIntOrInt<Int8>(column, res_column) ||
tryExecuteUIntOrInt<Int16>(column, res_column) ||
tryExecuteUIntOrInt<Int32>(column, res_column) ||
tryExecuteUIntOrInt<Int64>(column, res_column) ||
tryExecuteUIntOrInt<Int128>(column, res_column) ||
tryExecuteUIntOrInt<Int256>(column, res_column) ||
tryExecuteString(column, res_column) ||

View File

@ -1,5 +1,14 @@
174876E800
174876E800
64
9C
64
FF9C
64
FFFFFF9C
64
FFFFFFFFFFFFFF9C
174876E800
174876E800
174876E800
FFFFFFFFFFFFFFFFFFFFFFE8B7891800

View File

@ -2,6 +2,24 @@ SELECT hex(toUInt128(100000000000)) AS res;
SELECT hex(toUInt256(100000000000)) AS res;
SELECT hex(toInt8(100)) AS res;
SELECT hex(toInt8(-100)) AS res;
SELECT hex(toInt16(100)) AS res;
SELECT hex(toInt16(-100)) AS res;
SELECT hex(toInt32(100)) AS res;
SELECT hex(toInt32(-100)) AS res;
SELECT hex(toInt64(100)) AS res;
SELECT hex(toInt64(-100)) AS res;
SELECT hex(toInt128(100000000000)) AS res;
SELECT hex(toInt128(100000000000)) AS res;
SELECT hex(toInt256(100000000000)) AS res;