提交 8e262fe8 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Use >> in scripts/functions/numeric

上级 f7e5b345
......@@ -15,11 +15,8 @@ select abs(-1) r1, abs(id) r1b from test;
> 1 1
> rows: 1
select abs(sum(id)) r1 from test;
> R1
> --
> 1
> rows: 1
select abs(sum(id)) from test;
>> 1
select abs(null) vn, abs(-1) r1, abs(1) r2, abs(0) r3, abs(-0.1) r4, abs(0.1) r5 from test;
> VN R1 R2 R3 R4 R5
......
......@@ -4,14 +4,7 @@
--
call utf8tostring(decrypt('AES', '00000000000000000000000000000000', 'dbd42d55d4b923c4b03eba0396fac98e'));
> 'Hello World Test'
> ------------------
> Hello World Test
> rows: 1
>> Hello World Test
call utf8tostring(decrypt('AES', hash('sha256', stringtoutf8('Hello'), 1000), encrypt('AES', hash('sha256', stringtoutf8('Hello'), 1000), stringtoutf8('Hello World Test'))));
> 'Hello World Test'
> ------------------
> Hello World Test
> rows: 1
>> Hello World Test
......@@ -4,20 +4,10 @@
--
call encrypt('AES', '00000000000000000000000000000000', stringtoutf8('Hello World Test'));
> X'dbd42d55d4b923c4b03eba0396fac98e'
> -----------------------------------
> dbd42d55d4b923c4b03eba0396fac98e
> rows: 1
>> dbd42d55d4b923c4b03eba0396fac98e
CALL ENCRYPT('XTEA', '00', STRINGTOUTF8('Test'));
> X'8bc9a4601b3062692a72a5941072425f'
> -----------------------------------
> 8bc9a4601b3062692a72a5941072425f
> rows: 1
>> 8bc9a4601b3062692a72a5941072425f
call encrypt('XTEA', '000102030405060708090a0b0c0d0e0f', '4142434445464748');
> X'dea0b0b40966b0669fbae58ab503765f'
> -----------------------------------
> dea0b0b40966b0669fbae58ab503765f
> rows: 1
>> dea0b0b40966b0669fbae58ab503765f
......@@ -4,13 +4,7 @@
--
call hash('SHA256', stringtoutf8('Hello'), 1);
> X'185f8db32271fe25f561a6fc938b2e264306ec304eda518007d1764826381969'
> -------------------------------------------------------------------
> 185f8db32271fe25f561a6fc938b2e264306ec304eda518007d1764826381969
> rows: 1
>> 185f8db32271fe25f561a6fc938b2e264306ec304eda518007d1764826381969
CALL HASH('SHA256', STRINGTOUTF8('Password'), 1000);
> X'c644a176ce920bde361ac336089b06cc2f1514dfa95ba5aabfe33f9a22d577f0'
> -------------------------------------------------------------------
> c644a176ce920bde361ac336089b06cc2f1514dfa95ba5aabfe33f9a22d577f0
> rows: 1
>> c644a176ce920bde361ac336089b06cc2f1514dfa95ba5aabfe33f9a22d577f0
......@@ -9,11 +9,5 @@ create memory table test(id int primary key, name varchar(255));
insert into test values(1, 'Hello');
> update count: 1
select pi() pi from test;
> PI
> -----------------
> 3.141592653589793
> rows: 1
select pi() from test;
>> 3.141592653589793
......@@ -15,12 +15,5 @@ select rand(1) e, random() f from test;
> 0.7308781907032909 0.41008081149220166
> rows: 1
select rand() e from test;
> E
> -------------------
> 0.20771484130971707
> rows: 1
select rand() from test;
>> 0.20771484130971707
......@@ -21,8 +21,5 @@ select trunc(null, null) en, trunc(1.99, 0) e1, trunc(-10.9, 0) em10 from test;
> null 1.0 -10.0
> rows: 1
select trunc(1.3) R;
> R
> ---
> 1.0
> rows: 1
select trunc(1.3);
>> 1.0
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论