Why does this xor operation zero out?
mysql> select 17246357237183571361 xor 13175113390712773921;
+-----------------------------------------------+
| 17246357237183571361 xor 13175113390712773921 |
+-----------------------------------------------+
| 0 |
+-----------------------------------------------+
That is not a bitwise operation it is a logical operation. See http://dev.mysql.com/doc/refman/5.0/en/logical-operators.html
So it boils down to 1 xor 1