Fix very strange code in AES functions

This commit is contained in:
Alexey Milovidov 2021-01-23 02:35:40 +03:00
parent 4452abf0fc
commit f7db6e10d3
4 changed files with 3 additions and 1 deletions

View File

@ -270,6 +270,7 @@ function run_tests
01318_encrypt # Depends on OpenSSL
01318_decrypt # Depends on OpenSSL
01663_aes_msan # Depends on OpenSSL
01667_aes_args_check # Depends on OpenSSL
01281_unsucceeded_insert_select_queries_counter
01292_create_user
01294_lazy_database_concurrent

View File

@ -168,7 +168,7 @@ private:
validateFunctionArgumentTypes(*this, arguments,
FunctionArgumentDescriptors{
{"mode", isStringOrFixedString, isColumnConst, "encryption mode string"},
{"input", nullptr, nullptr, "plaintext"},
{"input", isStringOrFixedString, nullptr, "plaintext"},
{"key", isStringOrFixedString, nullptr, "encryption key binary string"},
},
optional_args

View File

@ -0,0 +1 @@
SELECT encrypt('aes-128-ecb', [1, -1, 0, NULL], 'text'); -- { serverError 43 }