-20224 ENCRYPTED DATA THAT WAS ORIGINALLY A BINARY STRING CANNOT BE DECRYPTED TO A CHARACTER STRING
Explanation
The DECRYPT_BIT, DECRYPT_CHAR, or DECRYPT_DB function was invoked with an argument that represents an encrypted string that was originally a binary string. A binary string cannot be cast to a character string using the DECRYPT_BIT, DECRYPT_CHAR, or DECRYPT_DB function.
System action
The statement cannot be processed.
Programmer response
The encrypted value can only be decrypted using the DECRYPT_BINARY function.
SQLSTATE
22528