Add errno for multiset and vpd and a parse_node flag

This commit is contained in:
xianyu-w
2022-12-30 12:38:12 +00:00
committed by ob-robot
parent 7008a3587d
commit 21db1a62e2
4 changed files with 461 additions and 0 deletions

View File

@ -23037,6 +23037,330 @@ static const _error _error_OB_ERR_LOB_SPAN_TRANSACTION = {
.oracle_str_error = "ORA-22990: LOB locators cannot span transactions", .oracle_str_error = "ORA-22990: LOB locators cannot span transactions",
.oracle_str_user_error = "ORA-22990: LOB locators cannot span transactions" .oracle_str_user_error = "ORA-22990: LOB locators cannot span transactions"
}; };
static const _error _error_OB_ERR_INVALID_MULTISET = {
.error_name = "OB_ERR_INVALID_MULTISET",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "HY000",
.str_error = "MULTISET expression not allowed",
.str_user_error = "MULTISET expression not allowed",
.oracle_errno = 22903,
.oracle_str_error = "ORA-22903: MULTISET expression not allowed",
.oracle_str_user_error = "ORA-22903: MULTISET expression not allowed"
};
static const _error _error_OB_ERR_INVALID_CAST_UDT = {
.error_name = "OB_ERR_INVALID_CAST_UDT",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "HY000",
.str_error = "invalid CAST to a type that is not a nested table or VARRAY",
.str_user_error = "invalid CAST to a type that is not a nested table or VARRAY",
.oracle_errno = 22907,
.oracle_str_error = "ORA-22907: invalid CAST to a type that is not a nested table or VARRAY",
.oracle_str_user_error = "ORA-22907: invalid CAST to a type that is not a nested table or VARRAY"
};
static const _error _error_OB_ERR_POLICY_EXIST = {
.error_name = "OB_ERR_POLICY_EXIST",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "HY000",
.str_error = "policy already exists",
.str_user_error = "policy already exists",
.oracle_errno = 28101,
.oracle_str_error = "ORA-28101: policy already exists",
.oracle_str_user_error = "ORA-28101: policy already exists"
};
static const _error _error_OB_ERR_POLICY_NOT_EXIST = {
.error_name = "OB_ERR_POLICY_NOT_EXIST",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "HY000",
.str_error = "policy does not exist",
.str_user_error = "policy does not exist",
.oracle_errno = 28102,
.oracle_str_error = "ORA-28102: policy does not exist",
.oracle_str_user_error = "ORA-28102: policy does not exist"
};
static const _error _error_OB_ERR_ADD_POLICY_TO_SYS_OBJECT = {
.error_name = "OB_ERR_ADD_POLICY_TO_SYS_OBJECT",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "HY000",
.str_error = "adding a policy to an object owned by SYS is not allowed",
.str_user_error = "adding a policy to an object owned by SYS is not allowed",
.oracle_errno = 28103,
.oracle_str_error = "ORA-28103: adding a policy to an object owned by SYS is not allowed",
.oracle_str_user_error = "ORA-28103: adding a policy to an object owned by SYS is not allowed"
};
static const _error _error_OB_ERR_INVALID_INPUT_STRING = {
.error_name = "OB_ERR_INVALID_INPUT_STRING",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "HY000",
.str_error = "input value for %s is not valid",
.str_user_error = "input value for %s is not valid",
.oracle_errno = 28104,
.oracle_str_error = "ORA-28104: input value for %s is not valid",
.oracle_str_user_error = "ORA-28104: input value for %s is not valid"
};
static const _error _error_OB_ERR_SEC_COLUMN_ON_VIEW = {
.error_name = "OB_ERR_SEC_COLUMN_ON_VIEW",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "HY000",
.str_error = "cannot create security relevant column policy in an object view",
.str_user_error = "cannot create security relevant column policy in an object view",
.oracle_errno = 28105,
.oracle_str_error = "ORA-28105: cannot create security relevant column policy in an object view",
.oracle_str_user_error = "ORA-28105: cannot create security relevant column policy in an object view"
};
static const _error _error_OB_ERR_INVALID_INPUT_FOR_ARGUMENT = {
.error_name = "OB_ERR_INVALID_INPUT_FOR_ARGUMENT",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "HY000",
.str_error = "input value for argument %s is not valid",
.str_user_error = "input value for argument %s is not valid",
.oracle_errno = 28106,
.oracle_str_error = "ORA-28106: input value for argument %s is not valid",
.oracle_str_user_error = "ORA-28106: input value for argument %s is not valid"
};
static const _error _error_OB_ERR_POLICY_DISABLED = {
.error_name = "OB_ERR_POLICY_DISABLED",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "HY000",
.str_error = "policy was disabled",
.str_user_error = "policy was disabled",
.oracle_errno = 28107,
.oracle_str_error = "ORA-28107: policy was disabled",
.oracle_str_user_error = "ORA-28107: policy was disabled"
};
static const _error _error_OB_ERR_CIRCULAR_POLICIES = {
.error_name = "OB_ERR_CIRCULAR_POLICIES",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "HY000",
.str_error = "circular security policies detected",
.str_user_error = "circular security policies detected",
.oracle_errno = 28108,
.oracle_str_error = "ORA-28108: circular security policies detected",
.oracle_str_user_error = "ORA-28108: circular security policies detected"
};
static const _error _error_OB_ERR_TOO_MANY_POLICIES = {
.error_name = "OB_ERR_TOO_MANY_POLICIES",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "HY000",
.str_error = "the number of related policies has exceeded the limit of 16",
.str_user_error = "the number of related policies has exceeded the limit of 16",
.oracle_errno = 28109,
.oracle_str_error = "ORA-28109: the number of related policies has exceeded the limit of 16",
.oracle_str_user_error = "ORA-28109: the number of related policies has exceeded the limit of 16"
};
static const _error _error_OB_ERR_POLICY_FUNCTION = {
.error_name = "OB_ERR_POLICY_FUNCTION",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "HY000",
.str_error = "policy function or package %.*s.%.*s has error",
.str_user_error = "policy function or package %.*s.%.*s has error",
.oracle_errno = 28110,
.oracle_str_error = "ORA-28110: policy function or package %.*s.%.*s has error",
.oracle_str_user_error = "ORA-28110: policy function or package %.*s.%.*s has error"
};
static const _error _error_OB_ERR_NO_PRIV_EVAL_PREDICATE = {
.error_name = "OB_ERR_NO_PRIV_EVAL_PREDICATE",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "HY000",
.str_error = "insufficient privilege to evaluate policy predicate",
.str_user_error = "insufficient privilege to evaluate policy predicate",
.oracle_errno = 28111,
.oracle_str_error = "ORA-28111: insufficient privilege to evaluate policy predicate",
.oracle_str_user_error = "ORA-28111: insufficient privilege to evaluate policy predicate"
};
static const _error _error_OB_ERR_EXECUTE_POLICY_FUNCTION = {
.error_name = "OB_ERR_EXECUTE_POLICY_FUNCTION",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "HY000",
.str_error = "failed to execute policy function",
.str_user_error = "failed to execute policy function",
.oracle_errno = 28112,
.oracle_str_error = "ORA-28112: failed to execute policy function",
.oracle_str_user_error = "ORA-28112: failed to execute policy function"
};
static const _error _error_OB_ERR_POLICY_PREDICATE = {
.error_name = "OB_ERR_POLICY_PREDICATE",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "HY000",
.str_error = "policy predicate has error",
.str_user_error = "policy predicate has error",
.oracle_errno = 28113,
.oracle_str_error = "ORA-28113: policy predicate has error",
.oracle_str_user_error = "ORA-28113: policy predicate has error"
};
static const _error _error_OB_ERR_NO_PRIV_DIRECT_PATH_ACCESS = {
.error_name = "OB_ERR_NO_PRIV_DIRECT_PATH_ACCESS",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "HY000",
.str_error = "insufficient privileges to do direct path access",
.str_user_error = "insufficient privileges to do direct path access",
.oracle_errno = 28116,
.oracle_str_error = "ORA-28116: insufficient privileges to do direct path access",
.oracle_str_user_error = "ORA-28116: insufficient privileges to do direct path access"
};
static const _error _error_OB_ERR_INTEGRITY_CONSTRAINT_VIOLATED = {
.error_name = "OB_ERR_INTEGRITY_CONSTRAINT_VIOLATED",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "HY000",
.str_error = "integrity constraint violated - parent record not found",
.str_user_error = "integrity constraint violated - parent record not found",
.oracle_errno = 28117,
.oracle_str_error = "ORA-28117: integrity constraint violated - parent record not found",
.oracle_str_user_error = "ORA-28117: integrity constraint violated - parent record not found"
};
static const _error _error_OB_ERR_POLICY_GROUP_EXIST = {
.error_name = "OB_ERR_POLICY_GROUP_EXIST",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "HY000",
.str_error = "policy group already exists",
.str_user_error = "policy group already exists",
.oracle_errno = 28118,
.oracle_str_error = "ORA-28118: policy group already exists",
.oracle_str_user_error = "ORA-28118: policy group already exists"
};
static const _error _error_OB_ERR_POLICY_GROUP_NOT_EXIST = {
.error_name = "OB_ERR_POLICY_GROUP_NOT_EXIST",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "HY000",
.str_error = "policy group does not exist",
.str_user_error = "policy group does not exist",
.oracle_errno = 28119,
.oracle_str_error = "ORA-28119: policy group does not exist",
.oracle_str_user_error = "ORA-28119: policy group does not exist"
};
static const _error _error_OB_ERR_DRIVING_CONTEXT_EXIST = {
.error_name = "OB_ERR_DRIVING_CONTEXT_EXIST",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "HY000",
.str_error = "driving context already exists",
.str_user_error = "driving context already exists",
.oracle_errno = 28120,
.oracle_str_error = "ORA-28120: driving context already exists",
.oracle_str_user_error = "ORA-28120: driving context already exists"
};
static const _error _error_OB_ERR_DRIVING_CONTEXT_NOT_EXIST = {
.error_name = "OB_ERR_DRIVING_CONTEXT_NOT_EXIST",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "HY000",
.str_error = "driving context does not exist",
.str_user_error = "driving context does not exist",
.oracle_errno = 28121,
.oracle_str_error = "ORA-28121: driving context does not exist",
.oracle_str_user_error = "ORA-28121: driving context does not exist"
};
static const _error _error_OB_ERR_UPDATE_DEFAULT_GROUP = {
.error_name = "OB_ERR_UPDATE_DEFAULT_GROUP",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "HY000",
.str_error = "can not update SYS_DEFAULT policy group",
.str_user_error = "can not update SYS_DEFAULT policy group",
.oracle_errno = 28122,
.oracle_str_error = "ORA-28122: can not update SYS_DEFAULT policy group",
.oracle_str_user_error = "ORA-28122: can not update SYS_DEFAULT policy group"
};
static const _error _error_OB_ERR_CONTEXT_CONTAIN_INVALID_GROUP = {
.error_name = "OB_ERR_CONTEXT_CONTAIN_INVALID_GROUP",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "HY000",
.str_error = "Driving context %.*s,%.*s contains invalid group %.*s",
.str_user_error = "Driving context %.*s,%.*s contains invalid group %.*s",
.oracle_errno = 28123,
.oracle_str_error = "ORA-28123: Driving context %.*s,%.*s contains invalid group %.*s",
.oracle_str_user_error = "ORA-28123: Driving context %.*s,%.*s contains invalid group %.*s"
};
static const _error _error_OB_ERR_INVALID_SEC_COLUMN_TYPE = {
.error_name = "OB_ERR_INVALID_SEC_COLUMN_TYPE",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "HY000",
.str_error = "Column %.*s in sec_relevant_cols cannot be of an object data type",
.str_user_error = "Column %.*s in sec_relevant_cols cannot be of an object data type",
.oracle_errno = 28124,
.oracle_str_error = "ORA-28124: Column %.*s in sec_relevant_cols cannot be of an object data type",
.oracle_str_user_error = "ORA-28124: Column %.*s in sec_relevant_cols cannot be of an object data type"
};
static const _error _error_OB_ERR_UNPROTECTED_VIRTUAL_COLUMN = {
.error_name = "OB_ERR_UNPROTECTED_VIRTUAL_COLUMN",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "HY000",
.str_error = "A protected base column was referenced in an unprotected virtual column expression",
.str_user_error = "A protected base column was referenced in an unprotected virtual column expression",
.oracle_errno = 28125,
.oracle_str_error = "ORA-28125: A protected base column was referenced in an unprotected virtual column expression",
.oracle_str_user_error = "ORA-28125: A protected base column was referenced in an unprotected virtual column expression"
};
static const _error _error_OB_ERR_ATTRIBUTE_ASSOCIATION = {
.error_name = "OB_ERR_ATTRIBUTE_ASSOCIATION",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "HY000",
.str_error = "Attribute association failed for policy %.*s",
.str_user_error = "Attribute association failed for policy %.*s",
.oracle_errno = 28126,
.oracle_str_error = "ORA-28126: Attribute association failed for policy %.*s",
.oracle_str_user_error = "ORA-28126: Attribute association failed for policy %.*s"
};
static const _error _error_OB_ERR_MERGE_INTO_WITH_POLICY = {
.error_name = "OB_ERR_MERGE_INTO_WITH_POLICY",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "HY000",
.str_error = "The MERGE INTO syntax does not support the security policy",
.str_user_error = "The MERGE INTO syntax does not support the security policy",
.oracle_errno = 28132,
.oracle_str_error = "ORA-28132: The MERGE INTO syntax does not support the security policy",
.oracle_str_user_error = "ORA-28132: The MERGE INTO syntax does not support the security policy"
};
static const _error _error_OB_SP_RAISE_APPLICATION_ERROR = { static const _error _error_OB_SP_RAISE_APPLICATION_ERROR = {
.error_name = "OB_SP_RAISE_APPLICATION_ERROR", .error_name = "OB_SP_RAISE_APPLICATION_ERROR",
.error_cause = "Internal Error", .error_cause = "Internal Error",
@ -25046,6 +25370,33 @@ struct ObStrErrorInit
_errors[-OB_ERR_CLAUSE_RETURN_ILLEGAL] = &_error_OB_ERR_CLAUSE_RETURN_ILLEGAL; _errors[-OB_ERR_CLAUSE_RETURN_ILLEGAL] = &_error_OB_ERR_CLAUSE_RETURN_ILLEGAL;
_errors[-OB_ERR_NAME_HAS_TOO_MANY_PARTS] = &_error_OB_ERR_NAME_HAS_TOO_MANY_PARTS; _errors[-OB_ERR_NAME_HAS_TOO_MANY_PARTS] = &_error_OB_ERR_NAME_HAS_TOO_MANY_PARTS;
_errors[-OB_ERR_LOB_SPAN_TRANSACTION] = &_error_OB_ERR_LOB_SPAN_TRANSACTION; _errors[-OB_ERR_LOB_SPAN_TRANSACTION] = &_error_OB_ERR_LOB_SPAN_TRANSACTION;
_errors[-OB_ERR_INVALID_MULTISET] = &_error_OB_ERR_INVALID_MULTISET;
_errors[-OB_ERR_INVALID_CAST_UDT] = &_error_OB_ERR_INVALID_CAST_UDT;
_errors[-OB_ERR_POLICY_EXIST] = &_error_OB_ERR_POLICY_EXIST;
_errors[-OB_ERR_POLICY_NOT_EXIST] = &_error_OB_ERR_POLICY_NOT_EXIST;
_errors[-OB_ERR_ADD_POLICY_TO_SYS_OBJECT] = &_error_OB_ERR_ADD_POLICY_TO_SYS_OBJECT;
_errors[-OB_ERR_INVALID_INPUT_STRING] = &_error_OB_ERR_INVALID_INPUT_STRING;
_errors[-OB_ERR_SEC_COLUMN_ON_VIEW] = &_error_OB_ERR_SEC_COLUMN_ON_VIEW;
_errors[-OB_ERR_INVALID_INPUT_FOR_ARGUMENT] = &_error_OB_ERR_INVALID_INPUT_FOR_ARGUMENT;
_errors[-OB_ERR_POLICY_DISABLED] = &_error_OB_ERR_POLICY_DISABLED;
_errors[-OB_ERR_CIRCULAR_POLICIES] = &_error_OB_ERR_CIRCULAR_POLICIES;
_errors[-OB_ERR_TOO_MANY_POLICIES] = &_error_OB_ERR_TOO_MANY_POLICIES;
_errors[-OB_ERR_POLICY_FUNCTION] = &_error_OB_ERR_POLICY_FUNCTION;
_errors[-OB_ERR_NO_PRIV_EVAL_PREDICATE] = &_error_OB_ERR_NO_PRIV_EVAL_PREDICATE;
_errors[-OB_ERR_EXECUTE_POLICY_FUNCTION] = &_error_OB_ERR_EXECUTE_POLICY_FUNCTION;
_errors[-OB_ERR_POLICY_PREDICATE] = &_error_OB_ERR_POLICY_PREDICATE;
_errors[-OB_ERR_NO_PRIV_DIRECT_PATH_ACCESS] = &_error_OB_ERR_NO_PRIV_DIRECT_PATH_ACCESS;
_errors[-OB_ERR_INTEGRITY_CONSTRAINT_VIOLATED] = &_error_OB_ERR_INTEGRITY_CONSTRAINT_VIOLATED;
_errors[-OB_ERR_POLICY_GROUP_EXIST] = &_error_OB_ERR_POLICY_GROUP_EXIST;
_errors[-OB_ERR_POLICY_GROUP_NOT_EXIST] = &_error_OB_ERR_POLICY_GROUP_NOT_EXIST;
_errors[-OB_ERR_DRIVING_CONTEXT_EXIST] = &_error_OB_ERR_DRIVING_CONTEXT_EXIST;
_errors[-OB_ERR_DRIVING_CONTEXT_NOT_EXIST] = &_error_OB_ERR_DRIVING_CONTEXT_NOT_EXIST;
_errors[-OB_ERR_UPDATE_DEFAULT_GROUP] = &_error_OB_ERR_UPDATE_DEFAULT_GROUP;
_errors[-OB_ERR_CONTEXT_CONTAIN_INVALID_GROUP] = &_error_OB_ERR_CONTEXT_CONTAIN_INVALID_GROUP;
_errors[-OB_ERR_INVALID_SEC_COLUMN_TYPE] = &_error_OB_ERR_INVALID_SEC_COLUMN_TYPE;
_errors[-OB_ERR_UNPROTECTED_VIRTUAL_COLUMN] = &_error_OB_ERR_UNPROTECTED_VIRTUAL_COLUMN;
_errors[-OB_ERR_ATTRIBUTE_ASSOCIATION] = &_error_OB_ERR_ATTRIBUTE_ASSOCIATION;
_errors[-OB_ERR_MERGE_INTO_WITH_POLICY] = &_error_OB_ERR_MERGE_INTO_WITH_POLICY;
_errors[-OB_SP_RAISE_APPLICATION_ERROR] = &_error_OB_SP_RAISE_APPLICATION_ERROR; _errors[-OB_SP_RAISE_APPLICATION_ERROR] = &_error_OB_SP_RAISE_APPLICATION_ERROR;
_errors[-OB_SP_RAISE_APPLICATION_ERROR_NUM] = &_error_OB_SP_RAISE_APPLICATION_ERROR_NUM; _errors[-OB_SP_RAISE_APPLICATION_ERROR_NUM] = &_error_OB_SP_RAISE_APPLICATION_ERROR_NUM;
_errors[-OB_CLOB_ONLY_SUPPORT_WITH_MULTIBYTE_FUN] = &_error_OB_CLOB_ONLY_SUPPORT_WITH_MULTIBYTE_FUN; _errors[-OB_CLOB_ONLY_SUPPORT_WITH_MULTIBYTE_FUN] = &_error_OB_CLOB_ONLY_SUPPORT_WITH_MULTIBYTE_FUN;

View File

@ -2119,6 +2119,34 @@ DEFINE_ORACLE_ERROR(OB_ERR_MISSING_INTO_KEYWORD, -9712, -1, "HY000", "missing IN
DEFINE_ORACLE_ERROR(OB_ERR_CLAUSE_RETURN_ILLEGAL, -9713, -1, "HY000", "RETURNING clause must be used with INSERT, UPDATE, or DELETE statements", 6547, "RETURNING clause must be used with INSERT, UPDATE, or DELETE statements"); DEFINE_ORACLE_ERROR(OB_ERR_CLAUSE_RETURN_ILLEGAL, -9713, -1, "HY000", "RETURNING clause must be used with INSERT, UPDATE, or DELETE statements", 6547, "RETURNING clause must be used with INSERT, UPDATE, or DELETE statements");
DEFINE_ORACLE_ERROR(OB_ERR_NAME_HAS_TOO_MANY_PARTS, -9714, -1, "HY000", "name has too many parts", 6563, "name has too many parts"); DEFINE_ORACLE_ERROR(OB_ERR_NAME_HAS_TOO_MANY_PARTS, -9714, -1, "HY000", "name has too many parts", 6563, "name has too many parts");
DEFINE_ORACLE_ERROR(OB_ERR_LOB_SPAN_TRANSACTION, -9715, -1, "HY000", "LOB locators cannot span transactions", 22990, "LOB locators cannot span transactions"); DEFINE_ORACLE_ERROR(OB_ERR_LOB_SPAN_TRANSACTION, -9715, -1, "HY000", "LOB locators cannot span transactions", 22990, "LOB locators cannot span transactions");
DEFINE_ORACLE_ERROR(OB_ERR_INVALID_MULTISET, -9716, -1, "HY000", "MULTISET expression not allowed", 22903, "MULTISET expression not allowed");
DEFINE_ORACLE_ERROR(OB_ERR_INVALID_CAST_UDT, -9717, -1, "HY000", "invalid CAST to a type that is not a nested table or VARRAY", 22907, "invalid CAST to a type that is not a nested table or VARRAY");
DEFINE_ORACLE_ERROR(OB_ERR_POLICY_EXIST, -9718, -1, "HY000", "policy already exists", 28101, "policy already exists");
DEFINE_ORACLE_ERROR(OB_ERR_POLICY_NOT_EXIST, -9719, -1, "HY000", "policy does not exist", 28102, "policy does not exist");
DEFINE_ORACLE_ERROR(OB_ERR_ADD_POLICY_TO_SYS_OBJECT, -9720, -1, "HY000", "adding a policy to an object owned by SYS is not allowed", 28103, "adding a policy to an object owned by SYS is not allowed");
DEFINE_ORACLE_ERROR(OB_ERR_INVALID_INPUT_STRING, -9721, -1, "HY000", "input value for %s is not valid", 28104, "input value for %s is not valid");
DEFINE_ORACLE_ERROR(OB_ERR_SEC_COLUMN_ON_VIEW, -9722, -1, "HY000", "cannot create security relevant column policy in an object view", 28105, "cannot create security relevant column policy in an object view");
DEFINE_ORACLE_ERROR(OB_ERR_INVALID_INPUT_FOR_ARGUMENT, -9723, -1, "HY000", "input value for argument %s is not valid", 28106, "input value for argument %s is not valid");
DEFINE_ORACLE_ERROR(OB_ERR_POLICY_DISABLED, -9724, -1, "HY000", "policy was disabled", 28107, "policy was disabled");
DEFINE_ORACLE_ERROR(OB_ERR_CIRCULAR_POLICIES, -9725, -1, "HY000", "circular security policies detected", 28108, "circular security policies detected");
DEFINE_ORACLE_ERROR(OB_ERR_TOO_MANY_POLICIES, -9726, -1, "HY000", "the number of related policies has exceeded the limit of 16", 28109, "the number of related policies has exceeded the limit of 16");
DEFINE_ORACLE_ERROR(OB_ERR_POLICY_FUNCTION, -9727, -1, "HY000", "policy function or package %.*s.%.*s has error", 28110, "policy function or package %.*s.%.*s has error");
DEFINE_ORACLE_ERROR(OB_ERR_NO_PRIV_EVAL_PREDICATE, -9728, -1, "HY000", "insufficient privilege to evaluate policy predicate", 28111, "insufficient privilege to evaluate policy predicate");
DEFINE_ORACLE_ERROR(OB_ERR_EXECUTE_POLICY_FUNCTION, -9729, -1, "HY000", "failed to execute policy function", 28112, "failed to execute policy function");
DEFINE_ORACLE_ERROR(OB_ERR_POLICY_PREDICATE, -9730, -1, "HY000", "policy predicate has error", 28113, "policy predicate has error");
DEFINE_ORACLE_ERROR(OB_ERR_NO_PRIV_DIRECT_PATH_ACCESS, -9731, -1, "HY000", "insufficient privileges to do direct path access", 28116, "insufficient privileges to do direct path access");
DEFINE_ORACLE_ERROR(OB_ERR_INTEGRITY_CONSTRAINT_VIOLATED, -9732, -1, "HY000", "integrity constraint violated - parent record not found", 28117, "integrity constraint violated - parent record not found");
DEFINE_ORACLE_ERROR(OB_ERR_POLICY_GROUP_EXIST, -9733, -1, "HY000", "policy group already exists", 28118, "policy group already exists");
DEFINE_ORACLE_ERROR(OB_ERR_POLICY_GROUP_NOT_EXIST, -9734, -1, "HY000", "policy group does not exist", 28119, "policy group does not exist");
DEFINE_ORACLE_ERROR(OB_ERR_DRIVING_CONTEXT_EXIST, -9735, -1, "HY000", "driving context already exists", 28120, "driving context already exists");
DEFINE_ORACLE_ERROR(OB_ERR_DRIVING_CONTEXT_NOT_EXIST, -9736, -1, "HY000", "driving context does not exist", 28121, "driving context does not exist");
DEFINE_ORACLE_ERROR(OB_ERR_UPDATE_DEFAULT_GROUP, -9737, -1, "HY000", "can not update SYS_DEFAULT policy group", 28122, "can not update SYS_DEFAULT policy group");
DEFINE_ORACLE_ERROR(OB_ERR_CONTEXT_CONTAIN_INVALID_GROUP, -9738, -1, "HY000", "Driving context %.*s,%.*s contains invalid group %.*s", 28123, "Driving context %.*s,%.*s contains invalid group %.*s");
DEFINE_ORACLE_ERROR(OB_ERR_INVALID_SEC_COLUMN_TYPE, -9739, -1, "HY000", "Column %.*s in sec_relevant_cols cannot be of an object data type", 28124, "Column %.*s in sec_relevant_cols cannot be of an object data type");
DEFINE_ORACLE_ERROR(OB_ERR_UNPROTECTED_VIRTUAL_COLUMN, -9740, -1, "HY000", "A protected base column was referenced in an unprotected virtual column expression", 28125, "A protected base column was referenced in an unprotected virtual column expression");
DEFINE_ORACLE_ERROR(OB_ERR_ATTRIBUTE_ASSOCIATION, -9741, -1, "HY000", "Attribute association failed for policy %.*s", 28126, "Attribute association failed for policy %.*s");
DEFINE_ORACLE_ERROR(OB_ERR_MERGE_INTO_WITH_POLICY, -9742, -1, "HY000", "The MERGE INTO syntax does not support the security policy", 28132, "The MERGE INTO syntax does not support the security policy");
//////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////
// !!! text/blob || clob/blob erro code // !!! text/blob || clob/blob erro code
// for compat we cant not remove this errno!!!! // for compat we cant not remove this errno!!!!

View File

@ -1599,6 +1599,33 @@ constexpr int OB_ERR_MISSING_INTO_KEYWORD = -9712;
constexpr int OB_ERR_CLAUSE_RETURN_ILLEGAL = -9713; constexpr int OB_ERR_CLAUSE_RETURN_ILLEGAL = -9713;
constexpr int OB_ERR_NAME_HAS_TOO_MANY_PARTS = -9714; constexpr int OB_ERR_NAME_HAS_TOO_MANY_PARTS = -9714;
constexpr int OB_ERR_LOB_SPAN_TRANSACTION = -9715; constexpr int OB_ERR_LOB_SPAN_TRANSACTION = -9715;
constexpr int OB_ERR_INVALID_MULTISET = -9716;
constexpr int OB_ERR_INVALID_CAST_UDT = -9717;
constexpr int OB_ERR_POLICY_EXIST = -9718;
constexpr int OB_ERR_POLICY_NOT_EXIST = -9719;
constexpr int OB_ERR_ADD_POLICY_TO_SYS_OBJECT = -9720;
constexpr int OB_ERR_INVALID_INPUT_STRING = -9721;
constexpr int OB_ERR_SEC_COLUMN_ON_VIEW = -9722;
constexpr int OB_ERR_INVALID_INPUT_FOR_ARGUMENT = -9723;
constexpr int OB_ERR_POLICY_DISABLED = -9724;
constexpr int OB_ERR_CIRCULAR_POLICIES = -9725;
constexpr int OB_ERR_TOO_MANY_POLICIES = -9726;
constexpr int OB_ERR_POLICY_FUNCTION = -9727;
constexpr int OB_ERR_NO_PRIV_EVAL_PREDICATE = -9728;
constexpr int OB_ERR_EXECUTE_POLICY_FUNCTION = -9729;
constexpr int OB_ERR_POLICY_PREDICATE = -9730;
constexpr int OB_ERR_NO_PRIV_DIRECT_PATH_ACCESS = -9731;
constexpr int OB_ERR_INTEGRITY_CONSTRAINT_VIOLATED = -9732;
constexpr int OB_ERR_POLICY_GROUP_EXIST = -9733;
constexpr int OB_ERR_POLICY_GROUP_NOT_EXIST = -9734;
constexpr int OB_ERR_DRIVING_CONTEXT_EXIST = -9735;
constexpr int OB_ERR_DRIVING_CONTEXT_NOT_EXIST = -9736;
constexpr int OB_ERR_UPDATE_DEFAULT_GROUP = -9737;
constexpr int OB_ERR_CONTEXT_CONTAIN_INVALID_GROUP = -9738;
constexpr int OB_ERR_INVALID_SEC_COLUMN_TYPE = -9739;
constexpr int OB_ERR_UNPROTECTED_VIRTUAL_COLUMN = -9740;
constexpr int OB_ERR_ATTRIBUTE_ASSOCIATION = -9741;
constexpr int OB_ERR_MERGE_INTO_WITH_POLICY = -9742;
constexpr int OB_SP_RAISE_APPLICATION_ERROR = -20000; constexpr int OB_SP_RAISE_APPLICATION_ERROR = -20000;
constexpr int OB_SP_RAISE_APPLICATION_ERROR_NUM = -21000; constexpr int OB_SP_RAISE_APPLICATION_ERROR_NUM = -21000;
constexpr int OB_CLOB_ONLY_SUPPORT_WITH_MULTIBYTE_FUN = -22998; constexpr int OB_CLOB_ONLY_SUPPORT_WITH_MULTIBYTE_FUN = -22998;
@ -3527,6 +3554,33 @@ constexpr int OB_ERR_INVALID_DATE_MSG_FMT_V2 = -4219;
#define OB_ERR_CLAUSE_RETURN_ILLEGAL__USER_ERROR_MSG "RETURNING clause must be used with INSERT, UPDATE, or DELETE statements" #define OB_ERR_CLAUSE_RETURN_ILLEGAL__USER_ERROR_MSG "RETURNING clause must be used with INSERT, UPDATE, or DELETE statements"
#define OB_ERR_NAME_HAS_TOO_MANY_PARTS__USER_ERROR_MSG "name has too many parts" #define OB_ERR_NAME_HAS_TOO_MANY_PARTS__USER_ERROR_MSG "name has too many parts"
#define OB_ERR_LOB_SPAN_TRANSACTION__USER_ERROR_MSG "LOB locators cannot span transactions" #define OB_ERR_LOB_SPAN_TRANSACTION__USER_ERROR_MSG "LOB locators cannot span transactions"
#define OB_ERR_INVALID_MULTISET__USER_ERROR_MSG "MULTISET expression not allowed"
#define OB_ERR_INVALID_CAST_UDT__USER_ERROR_MSG "invalid CAST to a type that is not a nested table or VARRAY"
#define OB_ERR_POLICY_EXIST__USER_ERROR_MSG "policy already exists"
#define OB_ERR_POLICY_NOT_EXIST__USER_ERROR_MSG "policy does not exist"
#define OB_ERR_ADD_POLICY_TO_SYS_OBJECT__USER_ERROR_MSG "adding a policy to an object owned by SYS is not allowed"
#define OB_ERR_INVALID_INPUT_STRING__USER_ERROR_MSG "input value for %s is not valid"
#define OB_ERR_SEC_COLUMN_ON_VIEW__USER_ERROR_MSG "cannot create security relevant column policy in an object view"
#define OB_ERR_INVALID_INPUT_FOR_ARGUMENT__USER_ERROR_MSG "input value for argument %s is not valid"
#define OB_ERR_POLICY_DISABLED__USER_ERROR_MSG "policy was disabled"
#define OB_ERR_CIRCULAR_POLICIES__USER_ERROR_MSG "circular security policies detected"
#define OB_ERR_TOO_MANY_POLICIES__USER_ERROR_MSG "the number of related policies has exceeded the limit of 16"
#define OB_ERR_POLICY_FUNCTION__USER_ERROR_MSG "policy function or package %.*s.%.*s has error"
#define OB_ERR_NO_PRIV_EVAL_PREDICATE__USER_ERROR_MSG "insufficient privilege to evaluate policy predicate"
#define OB_ERR_EXECUTE_POLICY_FUNCTION__USER_ERROR_MSG "failed to execute policy function"
#define OB_ERR_POLICY_PREDICATE__USER_ERROR_MSG "policy predicate has error"
#define OB_ERR_NO_PRIV_DIRECT_PATH_ACCESS__USER_ERROR_MSG "insufficient privileges to do direct path access"
#define OB_ERR_INTEGRITY_CONSTRAINT_VIOLATED__USER_ERROR_MSG "integrity constraint violated - parent record not found"
#define OB_ERR_POLICY_GROUP_EXIST__USER_ERROR_MSG "policy group already exists"
#define OB_ERR_POLICY_GROUP_NOT_EXIST__USER_ERROR_MSG "policy group does not exist"
#define OB_ERR_DRIVING_CONTEXT_EXIST__USER_ERROR_MSG "driving context already exists"
#define OB_ERR_DRIVING_CONTEXT_NOT_EXIST__USER_ERROR_MSG "driving context does not exist"
#define OB_ERR_UPDATE_DEFAULT_GROUP__USER_ERROR_MSG "can not update SYS_DEFAULT policy group"
#define OB_ERR_CONTEXT_CONTAIN_INVALID_GROUP__USER_ERROR_MSG "Driving context %.*s,%.*s contains invalid group %.*s"
#define OB_ERR_INVALID_SEC_COLUMN_TYPE__USER_ERROR_MSG "Column %.*s in sec_relevant_cols cannot be of an object data type"
#define OB_ERR_UNPROTECTED_VIRTUAL_COLUMN__USER_ERROR_MSG "A protected base column was referenced in an unprotected virtual column expression"
#define OB_ERR_ATTRIBUTE_ASSOCIATION__USER_ERROR_MSG "Attribute association failed for policy %.*s"
#define OB_ERR_MERGE_INTO_WITH_POLICY__USER_ERROR_MSG "The MERGE INTO syntax does not support the security policy"
#define OB_SP_RAISE_APPLICATION_ERROR__USER_ERROR_MSG "%.*s" #define OB_SP_RAISE_APPLICATION_ERROR__USER_ERROR_MSG "%.*s"
#define OB_SP_RAISE_APPLICATION_ERROR_NUM__USER_ERROR_MSG "error number argument to raise_application_error of '%d' is out of range" #define OB_SP_RAISE_APPLICATION_ERROR_NUM__USER_ERROR_MSG "error number argument to raise_application_error of '%d' is out of range"
#define OB_CLOB_ONLY_SUPPORT_WITH_MULTIBYTE_FUN__USER_ERROR_MSG "CLOB or NCLOB in multibyte character set not supported" #define OB_CLOB_ONLY_SUPPORT_WITH_MULTIBYTE_FUN__USER_ERROR_MSG "CLOB or NCLOB in multibyte character set not supported"
@ -5455,6 +5509,33 @@ constexpr int OB_ERR_INVALID_DATE_MSG_FMT_V2 = -4219;
#define OB_ERR_CLAUSE_RETURN_ILLEGAL__ORA_USER_ERROR_MSG "ORA-06547: RETURNING clause must be used with INSERT, UPDATE, or DELETE statements" #define OB_ERR_CLAUSE_RETURN_ILLEGAL__ORA_USER_ERROR_MSG "ORA-06547: RETURNING clause must be used with INSERT, UPDATE, or DELETE statements"
#define OB_ERR_NAME_HAS_TOO_MANY_PARTS__ORA_USER_ERROR_MSG "ORA-06563: name has too many parts" #define OB_ERR_NAME_HAS_TOO_MANY_PARTS__ORA_USER_ERROR_MSG "ORA-06563: name has too many parts"
#define OB_ERR_LOB_SPAN_TRANSACTION__ORA_USER_ERROR_MSG "ORA-22990: LOB locators cannot span transactions" #define OB_ERR_LOB_SPAN_TRANSACTION__ORA_USER_ERROR_MSG "ORA-22990: LOB locators cannot span transactions"
#define OB_ERR_INVALID_MULTISET__ORA_USER_ERROR_MSG "ORA-22903: MULTISET expression not allowed"
#define OB_ERR_INVALID_CAST_UDT__ORA_USER_ERROR_MSG "ORA-22907: invalid CAST to a type that is not a nested table or VARRAY"
#define OB_ERR_POLICY_EXIST__ORA_USER_ERROR_MSG "ORA-28101: policy already exists"
#define OB_ERR_POLICY_NOT_EXIST__ORA_USER_ERROR_MSG "ORA-28102: policy does not exist"
#define OB_ERR_ADD_POLICY_TO_SYS_OBJECT__ORA_USER_ERROR_MSG "ORA-28103: adding a policy to an object owned by SYS is not allowed"
#define OB_ERR_INVALID_INPUT_STRING__ORA_USER_ERROR_MSG "ORA-28104: input value for %s is not valid"
#define OB_ERR_SEC_COLUMN_ON_VIEW__ORA_USER_ERROR_MSG "ORA-28105: cannot create security relevant column policy in an object view"
#define OB_ERR_INVALID_INPUT_FOR_ARGUMENT__ORA_USER_ERROR_MSG "ORA-28106: input value for argument %s is not valid"
#define OB_ERR_POLICY_DISABLED__ORA_USER_ERROR_MSG "ORA-28107: policy was disabled"
#define OB_ERR_CIRCULAR_POLICIES__ORA_USER_ERROR_MSG "ORA-28108: circular security policies detected"
#define OB_ERR_TOO_MANY_POLICIES__ORA_USER_ERROR_MSG "ORA-28109: the number of related policies has exceeded the limit of 16"
#define OB_ERR_POLICY_FUNCTION__ORA_USER_ERROR_MSG "ORA-28110: policy function or package %.*s.%.*s has error"
#define OB_ERR_NO_PRIV_EVAL_PREDICATE__ORA_USER_ERROR_MSG "ORA-28111: insufficient privilege to evaluate policy predicate"
#define OB_ERR_EXECUTE_POLICY_FUNCTION__ORA_USER_ERROR_MSG "ORA-28112: failed to execute policy function"
#define OB_ERR_POLICY_PREDICATE__ORA_USER_ERROR_MSG "ORA-28113: policy predicate has error"
#define OB_ERR_NO_PRIV_DIRECT_PATH_ACCESS__ORA_USER_ERROR_MSG "ORA-28116: insufficient privileges to do direct path access"
#define OB_ERR_INTEGRITY_CONSTRAINT_VIOLATED__ORA_USER_ERROR_MSG "ORA-28117: integrity constraint violated - parent record not found"
#define OB_ERR_POLICY_GROUP_EXIST__ORA_USER_ERROR_MSG "ORA-28118: policy group already exists"
#define OB_ERR_POLICY_GROUP_NOT_EXIST__ORA_USER_ERROR_MSG "ORA-28119: policy group does not exist"
#define OB_ERR_DRIVING_CONTEXT_EXIST__ORA_USER_ERROR_MSG "ORA-28120: driving context already exists"
#define OB_ERR_DRIVING_CONTEXT_NOT_EXIST__ORA_USER_ERROR_MSG "ORA-28121: driving context does not exist"
#define OB_ERR_UPDATE_DEFAULT_GROUP__ORA_USER_ERROR_MSG "ORA-28122: can not update SYS_DEFAULT policy group"
#define OB_ERR_CONTEXT_CONTAIN_INVALID_GROUP__ORA_USER_ERROR_MSG "ORA-28123: Driving context %.*s,%.*s contains invalid group %.*s"
#define OB_ERR_INVALID_SEC_COLUMN_TYPE__ORA_USER_ERROR_MSG "ORA-28124: Column %.*s in sec_relevant_cols cannot be of an object data type"
#define OB_ERR_UNPROTECTED_VIRTUAL_COLUMN__ORA_USER_ERROR_MSG "ORA-28125: A protected base column was referenced in an unprotected virtual column expression"
#define OB_ERR_ATTRIBUTE_ASSOCIATION__ORA_USER_ERROR_MSG "ORA-28126: Attribute association failed for policy %.*s"
#define OB_ERR_MERGE_INTO_WITH_POLICY__ORA_USER_ERROR_MSG "ORA-28132: The MERGE INTO syntax does not support the security policy"
#define OB_SP_RAISE_APPLICATION_ERROR__ORA_USER_ERROR_MSG "ORA%06ld: %.*s" #define OB_SP_RAISE_APPLICATION_ERROR__ORA_USER_ERROR_MSG "ORA%06ld: %.*s"
#define OB_SP_RAISE_APPLICATION_ERROR_NUM__ORA_USER_ERROR_MSG "ORA-21000: error number argument to raise_application_error of '%d' is out of range" #define OB_SP_RAISE_APPLICATION_ERROR_NUM__ORA_USER_ERROR_MSG "ORA-21000: error number argument to raise_application_error of '%d' is out of range"
#define OB_CLOB_ONLY_SUPPORT_WITH_MULTIBYTE_FUN__ORA_USER_ERROR_MSG "ORA-22998: CLOB or NCLOB in multibyte character set not supported" #define OB_CLOB_ONLY_SUPPORT_WITH_MULTIBYTE_FUN__ORA_USER_ERROR_MSG "ORA-22998: CLOB or NCLOB in multibyte character set not supported"

View File

@ -142,6 +142,7 @@ typedef struct _ParseNode
uint16_t is_date_unit_ : 1; //1 表示是date unit常量,在反拼的时候需要反拼为字符串 uint16_t is_date_unit_ : 1; //1 表示是date unit常量,在反拼的时候需要反拼为字符串
uint16_t is_literal_bool_ : 1; // indicate node is a literal TRUE/FALSE uint16_t is_literal_bool_ : 1; // indicate node is a literal TRUE/FALSE
uint16_t is_empty_ : 1; // 表示是否缺省该节点,1表示缺省,0表示没有缺省, opt_asc_desc节点中使用到 uint16_t is_empty_ : 1; // 表示是否缺省该节点,1表示缺省,0表示没有缺省, opt_asc_desc节点中使用到
uint16_t is_multiset_ : 1; // for cast(multiset(...) as ...)
uint16_t reserved_ : 1; uint16_t reserved_ : 1;
}; };
}; };