MySQL Forums
Forum List  »  Newbie

Re: Bitwise OR failed, bit 5 not set
Posted by: Rick James
Date: September 15, 2014 04:07PM

You are grossly mixing decimal and hex (or octal? or binary?)

mysql> SELECT HEX(0x200000 | 2);
+-------------------+
| HEX(0x200000 | 2) |
+-------------------+
| 200002            |
+-------------------+
1 row in set (0.00 sec)

mysql> SELECT HEX(0x200000 | 32);
+--------------------+
| HEX(0x200000 | 32) |
+--------------------+
| 200020             |
+--------------------+
1 row in set (0.00 sec)

Options: ReplyQuote


Subject
Written By
Posted
Re: Bitwise OR failed, bit 5 not set
September 15, 2014 04:07PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.