func_op.test
来自「视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.」· TEST 代码 · 共 35 行
TEST
35 行
# Description# -----------# Simple operands and arithmetic groupingselect 1+1,1-1,1+1*2,8/5,8%5,mod(8,5),mod(8,5)|0,-(1+1)*-2;explain extended select 1+1,1-1,1+1*2,8/5,8%5,mod(8,5),mod(8,5)|0,-(1+1)*-2;select 1 | (1+1),5 & 3,bit_count(7) ;explain extended select 1 | (1+1),5 & 3,bit_count(7) ;select 1 << 32,1 << 63, 1 << 64, 4 >> 2, 4 >> 63, 1<< 63 >> 60;## bug #1993: bit functions must be unsigned#select -1 | 0, -1 ^ 0, -1 & 0;select -1 | 1, -1 ^ 1, -1 & 1;select 1 | -1, 1 ^ -1, 1 & -1;select 0 | -1, 0 ^ -1, 0 & -1;select -1 >> 0, -1 << 0;select -1 >> 1, -1 << 1;## Bug 13044: wrong bit_count() results#--disable_warningsdrop table if exists t1,t2;--enable_warningscreate table t1(a int);create table t2(a int, b int);insert into t1 values (1), (2), (3);insert into t2 values (1, 7), (3, 7);select t1.a, t2.a, t2.b, bit_count(t2.b) from t1 left join t2 on t1.a=t2.a;drop table t1, t2;# End of 4.1 tests
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?