From adfbdf3f5852fa528453dbf38bbc9ea1ae4b7eef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= Date: Tue, 26 Mar 2024 11:17:43 +0100 Subject: [PATCH 1/4] encryption-and-compression-functions: Update for MySQL 8.0 --- .../encryption-and-compression-functions.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/functions-and-operators/encryption-and-compression-functions.md b/functions-and-operators/encryption-and-compression-functions.md index 181300d313346..dd7574d1ddfee 100644 --- a/functions-and-operators/encryption-and-compression-functions.md +++ b/functions-and-operators/encryption-and-compression-functions.md @@ -6,7 +6,7 @@ aliases: ['/docs/dev/functions-and-operators/encryption-and-compression-function # Encryption and Compression Functions -TiDB supports most of the [encryption and compression functions](https://dev.mysql.com/doc/refman/5.7/en/encryption-functions.html) available in MySQL 5.7. +TiDB supports most of the [encryption and compression functions](https://dev.mysql.com/doc/refman/8.0/en/encryption-functions.html) available in MySQL 8.0. ## Supported functions @@ -25,11 +25,18 @@ TiDB supports most of the [encryption and compression functions](https://dev.mys | [`UNCOMPRESSED_LENGTH()`](https://dev.mysql.com/doc/refman/8.0/en/encryption-functions.html#function_uncompressed-length) | Return the length of a string before compression | | [`VALIDATE_PASSWORD_STRENGTH()`](https://dev.mysql.com/doc/refman/8.0/en/encryption-functions.html#function_validate-password-strength) | Validate the password strength | + ## Related system variables -The `block_encryption_mode` variable sets the encryption mode that is used for `AES_ENCRYPT()` and `AES_DECRYPT()`. +The [`block_encryption_mode`](/system-variables.md#block_encryption_mode) variable sets the encryption mode that is used for `AES_ENCRYPT()` and `AES_DECRYPT()`. + +The [`validate_password.*`](/system-variables.md) variables influence the `VALIDATE_PASSWORD_STRENGTH()` function. ## Unsupported functions * `DES_DECRYPT()`, `DES_ENCRYPT()`, `OLD_PASSWORD()`, `ENCRYPT()`: these functions were deprecated in MySQL 5.7 and removed in 8.0. * Functions only available in MySQL Enterprise [Issue #2632](https://github.com/pingcap/tidb/issues/2632). + +## MySQL Compatibility + +* TiDB doesn't support the `STATEMENT_DIGEST()` and `STATEMENT_DIGEST_TEXT()` functions. From f2c2de18706ef2f392976e84282aacf1f41bb96f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= Date: Tue, 26 Mar 2024 16:20:10 +0100 Subject: [PATCH 2/4] Update functions-and-operators/encryption-and-compression-functions.md --- functions-and-operators/encryption-and-compression-functions.md | 1 - 1 file changed, 1 deletion(-) diff --git a/functions-and-operators/encryption-and-compression-functions.md b/functions-and-operators/encryption-and-compression-functions.md index dd7574d1ddfee..81e509d1fbba2 100644 --- a/functions-and-operators/encryption-and-compression-functions.md +++ b/functions-and-operators/encryption-and-compression-functions.md @@ -25,7 +25,6 @@ TiDB supports most of the [encryption and compression functions](https://dev.mys | [`UNCOMPRESSED_LENGTH()`](https://dev.mysql.com/doc/refman/8.0/en/encryption-functions.html#function_uncompressed-length) | Return the length of a string before compression | | [`VALIDATE_PASSWORD_STRENGTH()`](https://dev.mysql.com/doc/refman/8.0/en/encryption-functions.html#function_validate-password-strength) | Validate the password strength | - ## Related system variables The [`block_encryption_mode`](/system-variables.md#block_encryption_mode) variable sets the encryption mode that is used for `AES_ENCRYPT()` and `AES_DECRYPT()`. From 3b160dc81e2006f130a51f0c1dd61cbbfba214eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= Date: Wed, 17 Apr 2024 08:35:03 +0200 Subject: [PATCH 3/4] Update functions-and-operators/encryption-and-compression-functions.md Co-authored-by: Grace Cai --- .../encryption-and-compression-functions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions-and-operators/encryption-and-compression-functions.md b/functions-and-operators/encryption-and-compression-functions.md index 81e509d1fbba2..4916849abd61b 100644 --- a/functions-and-operators/encryption-and-compression-functions.md +++ b/functions-and-operators/encryption-and-compression-functions.md @@ -36,6 +36,6 @@ The [`validate_password.*`](/system-variables.md) variables influence the `VALID * `DES_DECRYPT()`, `DES_ENCRYPT()`, `OLD_PASSWORD()`, `ENCRYPT()`: these functions were deprecated in MySQL 5.7 and removed in 8.0. * Functions only available in MySQL Enterprise [Issue #2632](https://github.com/pingcap/tidb/issues/2632). -## MySQL Compatibility +## MySQL compatibility -* TiDB doesn't support the `STATEMENT_DIGEST()` and `STATEMENT_DIGEST_TEXT()` functions. +* TiDB does not support the `STATEMENT_DIGEST()` and `STATEMENT_DIGEST_TEXT()` functions. From bec51dd11b773f68d526ccc9258720ed71dcb1f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= Date: Wed, 17 Apr 2024 08:36:33 +0200 Subject: [PATCH 4/4] Update functions-and-operators/encryption-and-compression-functions.md Co-authored-by: Grace Cai --- functions-and-operators/encryption-and-compression-functions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions-and-operators/encryption-and-compression-functions.md b/functions-and-operators/encryption-and-compression-functions.md index 4916849abd61b..342a6f6ceff06 100644 --- a/functions-and-operators/encryption-and-compression-functions.md +++ b/functions-and-operators/encryption-and-compression-functions.md @@ -29,7 +29,7 @@ TiDB supports most of the [encryption and compression functions](https://dev.mys The [`block_encryption_mode`](/system-variables.md#block_encryption_mode) variable sets the encryption mode that is used for `AES_ENCRYPT()` and `AES_DECRYPT()`. -The [`validate_password.*`](/system-variables.md) variables influence the `VALIDATE_PASSWORD_STRENGTH()` function. +The [`validate_password.*`](/system-variables.md) variables affect the `VALIDATE_PASSWORD_STRENGTH()` function. ## Unsupported functions