-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[improve](function) opt aes_encrypt/decrypt function to handle const …
…column (#37194) ## Proposed changes ``` select to_base64(aes_encrypt(column,'F3229A0B371ED2D9441B830D21A390C3', '0123456789')); In most case of user, the second and third argument are const literal. so handle the special case. mysql [test]>select count(aes_encrypt(a, 'seed1seed2seed3','0123456789')) from json_table_2; +-----------------------------------------------------------+ | count(aes_encrypt(a, '***', '0123456789', 'AES_256_CBC')) | +-----------------------------------------------------------+ | 10000001 | +-----------------------------------------------------------+ 1 row in set (5.20 sec) mysql [test]>select count(aes_encrypt(a, 'seed1seed2seed3','0123456789')) from json_table_2; +-----------------------------------------------------------+ | count(aes_encrypt(a, '***', '0123456789', 'AES_256_CBC')) | +-----------------------------------------------------------+ | 10000001 | +-----------------------------------------------------------+ 1 row in set (7.05 sec) ```
- Loading branch information
1 parent
30053c5
commit 3f362c9
Showing
1 changed file
with
205 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters