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