array expr&errno placeholder
This commit is contained in:
parent
9345dccd58
commit
81e450f995
1
deps/oblib/src/lib/ob_errno.h
vendored
1
deps/oblib/src/lib/ob_errno.h
vendored
@ -376,6 +376,7 @@ constexpr int OB_ERR_TOO_MANY_PREFIX_DECLARE = -7424;
|
||||
constexpr int OB_ERR_XPATH_INVALID_NODE = -7426;
|
||||
constexpr int OB_ERR_XPATH_NO_NODE = -7427;
|
||||
constexpr int OB_ERR_DUP_DEF_NAMESPACE = -7431;
|
||||
constexpr int OB_ERR_INVALID_VECTOR_DIM = -7600;
|
||||
constexpr int OB_PACKET_CLUSTER_ID_NOT_MATCH = -8004;
|
||||
constexpr int OB_TENANT_ID_NOT_MATCH = -8005;
|
||||
constexpr int OB_URI_ERROR = -9001;
|
||||
|
@ -81,6 +81,7 @@ typedef enum ObItemType
|
||||
T_JSON = 47,
|
||||
T_GEOMETRY = 48,
|
||||
T_UDT_SQL = 49,
|
||||
T_COLLECTION = 51,
|
||||
T_ROARINGBITMAP = 52,
|
||||
|
||||
T_IEEE754_NAN = 61,
|
||||
@ -853,6 +854,7 @@ typedef enum ObItemType
|
||||
T_FUN_SYS_XML_EXISTSNODE = 1734,
|
||||
T_FUN_SYS_PRIV_ST_GEOHASH = 1735,
|
||||
T_FUN_SYS_PRIV_ST_MAKEPOINT = 1736,
|
||||
T_FUN_SYS_ARRAY = 1737,
|
||||
///< @note add new oracle only function type before this line
|
||||
|
||||
T_FUN_SYS_TABLET_AUTOINC_NEXTVAL = 1801, // add only for heap table
|
||||
|
@ -93,6 +93,7 @@ static const ObMySQLTypeMap type_maps_[ObMaxType] =
|
||||
{EMySQLFieldType::MYSQL_TYPE_GEOMETRY, BLOB_FLAG | BINARY_FLAG, 0}, /* ObGeometryType */
|
||||
{EMySQLFieldType::MYSQL_TYPE_COMPLEX, 0, 0}, /* ObUserDefinedSQLType */
|
||||
{EMySQLFieldType::MYSQL_TYPE_NEWDECIMAL, 0, 0}, /* ObDecimalIntType */
|
||||
{EMySQLFieldType::MYSQL_TYPE_STRING, 0, 0}, /* ObCollectionSQLType, will cast to string */
|
||||
/* ObMaxType */
|
||||
};
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
@ -9,6 +9,7 @@
|
||||
// 负载均衡(Transfer)错误码值域[-7100, -7200)
|
||||
// GIS错误码值域 [-7201, -7400)
|
||||
// XML错误码值域 [-7400, -7600)
|
||||
// ARRAY错误码值域 [-7600, -7700)
|
||||
// 致命错误[-8000, -9000),客户端收到8xxx错误,需要关闭SQL连接
|
||||
// Storage错误码值域 [-9000, -9500)
|
||||
// PL/SQL错误码值域 [-9500, -10000)
|
||||
@ -2136,6 +2137,26 @@ DEFINE_ORACLE_ERROR(OB_ERR_XML_PARENT_ALREADY_CONTAINS_CHILD, -7433, -1, "42000"
|
||||
// 4. 本文件修改完成后,需要调用gen_errno.pl,生成ob_errno.h文件
|
||||
////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// ARRAY错误码值域 [-7600, -7700)
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
DEFINE_ORACLE_ERROR_EXT_DEP(OB_ERR_INVALID_VECTOR_DIM, -7600, -1, "22000", "Invalid dimension for vector.", "inconsistent dimension: expected %u got %u", 932, "inconsistent dimension", "inconsistent dimension: expected %u got %u");
|
||||
|
||||
// 余留位置
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// ARRAY错误码值域 [-7600, -7700)
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
//////////////////////////////////// 新增(占位)须知 ////////////////////////////////////
|
||||
// 1. 新增错误码需要先在master分支提交,保证master是所有版本的超集,避免出现错误码冲突
|
||||
// 2. 不支持以注释方式“占位”错误码,如果要新增错误码,直接提交完整的错误码定义即可
|
||||
// 3. 不同的错误码区间有不同含义,请在合理区间内顺序定义错误码。区间定义见文件头。
|
||||
// 每个区间内,请在“余留位置”行之前定义新错误码
|
||||
// 如果没有合适区间,请联系 @修铭 定义一个新的区间
|
||||
// 4. 本文件修改完成后,需要调用gen_errno.pl,生成ob_errno.h文件
|
||||
////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
// 致命错误[-8000, -9000),客户端收到8xxx错误,需要关闭SQL连接
|
||||
////////////////////////////////////////////////////////////////
|
||||
|
@ -3720,6 +3720,7 @@ constexpr int OB_ERR_INVALID_DATE_MSG_FMT_V2 = -4219;
|
||||
#define OB_ERR_DUP_DEF_NAMESPACE__USER_ERROR_MSG "XQST0066 - duplicate default namespace definition - %s."
|
||||
#define OB_ERR_COMPARE_VARRAY_LOB_ATTR__USER_ERROR_MSG "cannot compare VARRAY or LOB attributes of an object type"
|
||||
#define OB_ERR_XML_PARENT_ALREADY_CONTAINS_CHILD__USER_ERROR_MSG "Parent %.*s already contains child entry %s%.*s"
|
||||
#define OB_ERR_INVALID_VECTOR_DIM__USER_ERROR_MSG "inconsistent dimension: expected %u got %u"
|
||||
#define OB_SERVER_IS_INIT__USER_ERROR_MSG "Server is initializing"
|
||||
#define OB_SERVER_IS_STOPPING__USER_ERROR_MSG "Server is stopping"
|
||||
#define OB_PACKET_CHECKSUM_ERROR__USER_ERROR_MSG "Packet checksum error"
|
||||
@ -5987,6 +5988,7 @@ constexpr int OB_ERR_INVALID_DATE_MSG_FMT_V2 = -4219;
|
||||
#define OB_ERR_DUP_DEF_NAMESPACE__ORA_USER_ERROR_MSG "ORA-19118: XQST0066 - duplicate default namespace definition - %s."
|
||||
#define OB_ERR_COMPARE_VARRAY_LOB_ATTR__ORA_USER_ERROR_MSG "ORA-22901: cannot compare VARRAY or LOB attributes of an object type"
|
||||
#define OB_ERR_XML_PARENT_ALREADY_CONTAINS_CHILD__ORA_USER_ERROR_MSG "ORA-31003: Parent %.*s already contains child entry %s%.*s"
|
||||
#define OB_ERR_INVALID_VECTOR_DIM__ORA_USER_ERROR_MSG "ORA-00932: inconsistent dimension: expected %u got %u"
|
||||
#define OB_SERVER_IS_INIT__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -8001, Server is initializing"
|
||||
#define OB_SERVER_IS_STOPPING__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -8002, Server is stopping"
|
||||
#define OB_PACKET_CHECKSUM_ERROR__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -8003, Packet checksum error"
|
||||
@ -6425,7 +6427,7 @@ constexpr int OB_ERR_INVALID_DATE_MSG_FMT_V2 = -4219;
|
||||
#define OB_ERR_DATA_TOO_LONG_MSG_FMT_V2__ORA_USER_ERROR_MSG "ORA-12899: value too large for column %.*s (actual: %ld, maximum: %ld)"
|
||||
#define OB_ERR_INVALID_DATE_MSG_FMT_V2__ORA_USER_ERROR_MSG "ORA-01861: Incorrect datetime value for column '%.*s' at row %ld"
|
||||
|
||||
extern int g_all_ob_errnos[2263];
|
||||
extern int g_all_ob_errnos[2264];
|
||||
|
||||
const char *ob_error_name(const int oberr);
|
||||
const char* ob_error_cause(const int oberr);
|
||||
|
@ -1196,6 +1196,7 @@ static ObExpr::EvalFunc g_expr_eval_functions[] = {
|
||||
NULL, // ObExprRbToString::eval_rb_to_string, /* 717 */
|
||||
NULL, // ObExprRbFromString::eval_rb_from_string, /* 718 */
|
||||
NULL, // ObExprRbIterate::eval_rb_iterate, /* 719 */
|
||||
NULL, // ObExprArray::eval_array, /* 720 */
|
||||
};
|
||||
|
||||
static ObExpr::EvalBatchFunc g_expr_eval_batch_functions[] = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user