add id placeholders for column level encrypt

This commit is contained in:
PatZhuang 2024-09-25 07:35:46 +00:00 committed by ob-robot
parent 75f90b0362
commit e5dbdc61a4
4 changed files with 11 additions and 1 deletions

View File

@ -508,6 +508,8 @@ typedef enum ObItemType
T_FUN_SYS_SM3 = 776,
T_FUN_SYS_SM4_ENCRYPT = 777,
T_FUN_SYS_SM4_DECRYPT = 778,
T_FUN_SYS_ENHANCED_AES_ENCRYPT = 779,
T_FUN_SYS_ENHANCED_AES_DECRYPT = 780,
///< @note add new mysql only function type before this line
T_MYSQL_ONLY_SYS_MAX_OP = 800,

View File

@ -82,6 +82,8 @@ const char *ObPrivMgr::priv_names_[] = {
"DROP ROLE",
"TRIGGER",
"LOCK TABLES", // index 45
"ENCRYPT", // index 46
"DECRYPT", // index 47
};
ObPrivMgr::ObPrivMgr()

View File

@ -74,6 +74,8 @@ enum OB_PRIV_SHIFT
OB_PRIV_DROP_ROLE_SHIFT,
OB_PRIV_TRIGGER_SHIFT,
OB_PRIV_LOCK_TABLE_SHIFT = 45,
OB_PRIV_ENCRYPT_SHIFT = 46,
OB_PRIV_DECRYPT_SHIFT = 47,
OB_PRIV_MAX_SHIFT_PLUS_ONE,
OB_PRIV_MAX_SHIFT_LIMIT = 65
};
@ -172,7 +174,9 @@ enum OB_PRIV_OTHERS_TYPE
OB_PRIV_OTHERS_CREATE_ROLE = (1LL << 7),
OB_PRIV_OTHERS_DROP_ROLE = (1LL << 8),
OB_PRIV_OTHERS_TRIGGER = (1LL << 9),
OB_PRIV_OTHERS_LOCK_TABLE = (1LL << 10)
OB_PRIV_OTHERS_LOCK_TABLE = (1LL << 10),
OB_PRIV_OTHERS_ENCRYPT = (1LL << 11),
OB_PRIV_OTHERS_DECRYPT = (1LL << 12)
};
#endif //ifndef OCEABASE_SHARE_SCHEMA_OB_PRIV_TYPE_H_

View File

@ -1263,6 +1263,8 @@ static ObExpr::EvalFunc g_expr_eval_functions[] = {
NULL, // ObExprRbSelect::eval_rb_select, /* 756 */
ObExprVectorNegativeIPDistance::calc_negative_inner_product, /* 757 */
NULL, // ObExprTokenize::eval_tokenize, /* 758 */
NULL, // ObExprEnhancedAesEncrypt::eval_aes_encrypt /* 759 */
NULL, // ObExprEnhancedAesEncrypt::eval_aes_decrypt /* 760 */
};
static ObExpr::EvalBatchFunc g_expr_eval_batch_functions[] = {