Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bit-functions-and-operators: Update reference manual links #16847

Merged
merged 9 commits into from
Apr 18, 2024
11 changes: 10 additions & 1 deletion functions-and-operators/bit-functions-and-operators.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ aliases: ['/docs/dev/functions-and-operators/bit-functions-and-operators/','/doc

# Bit Functions and Operators

TiDB supports all of the [bit functions and operators](https://dev.mysql.com/doc/refman/5.7/en/bit-functions.html) available in MySQL 5.7.
TiDB supports all of the [bit functions and operators](https://dev.mysql.com/doc/refman/8.0/en/bit-functions.html) available in MySQL 8.0.

**Bit functions and operators:**

Expand All @@ -19,3 +19,12 @@ TiDB supports all of the [bit functions and operators](https://dev.mysql.com/doc
| [^](https://dev.mysql.com/doc/refman/8.0/en/bit-functions.html#operator_bitwise-xor) | Bitwise XOR |
| [<<](https://dev.mysql.com/doc/refman/8.0/en/bit-functions.html#operator_left-shift) | Left shift |
| [>>](https://dev.mysql.com/doc/refman/8.0/en/bit-functions.html#operator_right-shift) | Right shift |

# MySQL Compatibility

There are some differences between MySQL 8.0 and earlier versions of MySQL handle bit operations. TiDB aims to follow the MySQL 8.0 behaviour.
dveeden marked this conversation as resolved.
Show resolved Hide resolved

## Known issues

- [bitwise operations with binary args behavior changes between MySQL 5.7 and 8.0](https://github.com/pingcap/tidb/issues/30637)
- [function bit\_count result is Inconsistent with MySQL](https://github.com/pingcap/tidb/issues/44621)
dveeden marked this conversation as resolved.
Show resolved Hide resolved
Loading