SELECT !(!0), ! !0, !!0 AS WTF;
in MySQL yields the following output ...
-------------------------
!(!0) | ! !0 | WTF
-------------------------
0 | 0 | 1 # <- What's going on here?
I can't se开发者_开发百科em to find anything in the Docs that would explain this. Can you?
That's a known bug in mysql regarding operator parsing.
精彩评论