diff options
author | unknown <konstantin@mysql.com> | 2003-12-10 17:30:37 +0300 |
---|---|---|
committer | unknown <konstantin@mysql.com> | 2003-12-10 17:30:37 +0300 |
commit | f195cf9d1455f05bd6e6b1e0225f1062dc28d9f7 (patch) | |
tree | 0902a94e5ddab6700bd2269d5af63e9a7875179b /mysql-test/t/func_op.test | |
parent | 4c00978b43921525d59f52da1ad13b516da16f1e (diff) | |
download | mariadb-git-f195cf9d1455f05bd6e6b1e0225f1062dc28d9f7.tar.gz |
fix for bug #1993 'bit functions do not return unsigned values'
introduced base class Item_func_bit for bit functions
mysql-test/r/func_op.result:
test results for bug #1993 'bit functions do not return unsigned values'
mysql-test/t/func_op.test:
added tests for bug #1993 'bit functions do not return unsigned values'
Diffstat (limited to 'mysql-test/t/func_op.test')
-rw-r--r-- | mysql-test/t/func_op.test | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mysql-test/t/func_op.test b/mysql-test/t/func_op.test index 778c8406b8d..a312d6ac8c0 100644 --- a/mysql-test/t/func_op.test +++ b/mysql-test/t/func_op.test @@ -5,3 +5,12 @@ 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) ; 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; |