Add tests

This commit is contained in:
dankondr 2021-01-24 15:16:34 +00:00
parent 970c75860c
commit 3746f6cbd7
26 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,3 @@
1
---
0

View File

@ -0,0 +1,3 @@
SELECT ISNULL(NULL);
SELECT '---';
SELECT ISNULL('abc');

View File

@ -0,0 +1 @@
0A

View File

@ -0,0 +1 @@
SELECT HEX(10);

View File

@ -0,0 +1 @@
SELECT HOUR(toDateTime('2016-06-15 23:00:00'));

View File

@ -0,0 +1 @@
dGVzdCBzdHJpbmc=

View File

@ -0,0 +1 @@
SELECT TO_BASE64('test string');

View File

@ -0,0 +1 @@
SELECT FROM_BASE64('dGVzdCBzdHJpbmc=');

View File

@ -0,0 +1 @@
SELECT DAYOFYEAR(toDateTime('2016-06-15 23:00:00'));

View File

@ -0,0 +1 @@
SELECT DAYOFWEEK(toDateTime('2016-06-15 23:00:00'));

View File

@ -0,0 +1,3 @@
SELECT DAYOFMONTH(toDateTime('2016-06-15 23:00:00'));
SELECT '---';
SELECT DAY(toDateTime('2016-06-15 23:00:00'));

View File

@ -0,0 +1 @@
2016-06-15

View File

@ -0,0 +1 @@
SELECT DATE(toDateTime('2016-06-15 23:00:00'));

View File

@ -0,0 +1 @@
SELECT INET6_NTOA(toFixedString(unhex('2A0206B8000000000000000000000011'), 16));

View File

@ -0,0 +1 @@
*И\0\0\0\0\0\0\0\0\0\0\0

View File

@ -0,0 +1 @@
SELECT INET6_ATON('2a02:6b8::11');

View File

@ -0,0 +1 @@
SELECT INET_NTOA(toUInt32(1337));

View File

@ -0,0 +1 @@
SELECT INET_ATON('192.168.0.1');