[FEAT MERGE]:Oracle Json Supported

This commit is contained in:
obdev
2023-01-28 15:52:29 +08:00
committed by ob-robot
parent 274e68514d
commit bbb017266b
197 changed files with 30520 additions and 2252 deletions

View File

@ -10805,9 +10805,9 @@ static const _error _error_OB_ERR_INVALID_JSON_TEXT = {
.sqlstate = "22032",
.str_error = "Invalid JSON text.",
.str_user_error = "Invalid JSON text.",
.oracle_errno = 600,
.oracle_str_error = "ORA-00600: Invalid JSON text.",
.oracle_str_user_error = "ORA-00600: Invalid JSON text."
.oracle_errno = 40441,
.oracle_str_error = "ORA-40441: JSON syntax error.",
.oracle_str_user_error = "ORA-40441: JSON syntax error."
};
static const _error _error_OB_ERR_INVALID_JSON_TEXT_IN_PARAM = {
.error_name = "OB_ERR_INVALID_JSON_TEXT_IN_PARAM",
@ -10817,9 +10817,9 @@ static const _error _error_OB_ERR_INVALID_JSON_TEXT_IN_PARAM = {
.sqlstate = "22032",
.str_error = "Invalid JSON text in argument.",
.str_user_error = "Invalid JSON text in argument.",
.oracle_errno = 600,
.oracle_str_error = "ORA-00600: Invalid JSON text in argument.",
.oracle_str_user_error = "ORA-00600: Invalid JSON text in argument."
.oracle_errno = 40441,
.oracle_str_error = "ORA-40441: JSON syntax error",
.oracle_str_user_error = "ORA-40441: JSON syntax error"
};
static const _error _error_OB_ERR_INVALID_JSON_BINARY_DATA = {
.error_name = "OB_ERR_INVALID_JSON_BINARY_DATA",
@ -10829,9 +10829,9 @@ static const _error _error_OB_ERR_INVALID_JSON_BINARY_DATA = {
.sqlstate = "42000",
.str_error = "The JSON binary value contains invalid data.",
.str_user_error = "The JSON binary value contains invalid data.",
.oracle_errno = 600,
.oracle_str_error = "ORA-00600: The JSON binary value contains invalid data.",
.oracle_str_user_error = "ORA-00600: The JSON binary value contains invalid data."
.oracle_errno = 40783,
.oracle_str_error = "ORA-40783: invalid binary JSON data\nstring",
.oracle_str_user_error = "ORA-40783: invalid binary JSON data\nstring"
};
static const _error _error_OB_ERR_INVALID_JSON_PATH = {
.error_name = "OB_ERR_INVALID_JSON_PATH",
@ -10841,9 +10841,9 @@ static const _error _error_OB_ERR_INVALID_JSON_PATH = {
.sqlstate = "42000",
.str_error = "Invalid JSON path expression.",
.str_user_error = "Invalid JSON path expression.",
.oracle_errno = 600,
.oracle_str_error = "ORA-00600: Invalid JSON path expression.",
.oracle_str_user_error = "ORA-00600: Invalid JSON path expression."
.oracle_errno = 40442,
.oracle_str_error = "ORA-40442: JSON path expression syntax error ('INT')",
.oracle_str_user_error = "ORA-40442: JSON path expression syntax error ('INT')"
};
static const _error _error_OB_ERR_INVALID_JSON_CHARSET = {
.error_name = "OB_ERR_INVALID_JSON_CHARSET",
@ -10937,9 +10937,9 @@ static const _error _error_OB_ERR_JSON_KEY_TOO_BIG = {
.sqlstate = "22032",
.str_error = "The JSON object contains a key name that is too long.",
.str_user_error = "The JSON object contains a key name that is too long.",
.oracle_errno = 600,
.oracle_str_error = "ORA-00600: The JSON object contains a key name that is too long.",
.oracle_str_user_error = "ORA-00600: The JSON object contains a key name that is too long."
.oracle_errno = 40476,
.oracle_str_error = "ORA-40476: JSON key too long.",
.oracle_str_user_error = "ORA-40476: JSON key too long."
};
static const _error _error_OB_ERR_JSON_USED_AS_KEY = {
.error_name = "OB_ERR_JSON_USED_AS_KEY",
@ -11021,9 +11021,9 @@ static const _error _error_OB_ERR_JSON_DOCUMENT_NULL_KEY = {
.sqlstate = "22032",
.str_error = "JSON documents may not contain NULL member names.",
.str_user_error = "JSON documents may not contain NULL member names.",
.oracle_errno = 600,
.oracle_str_error = "ORA-00600: JSON documents may not contain NULL member names.",
.oracle_str_user_error = "ORA-00600: JSON documents may not contain NULL member names."
.oracle_errno = 40595,
.oracle_str_error = "ORA-40595: Name input to JSON generation function cannot be null",
.oracle_str_user_error = "ORA-40595: Name input to JSON generation function cannot be null"
};
static const _error _error_OB_ERR_BLOB_CANT_HAVE_DEFAULT = {
.error_name = "OB_ERR_BLOB_CANT_HAVE_DEFAULT",
@ -11057,9 +11057,9 @@ static const _error _error_OB_ERR_MISSING_JSON_VALUE = {
.sqlstate = "22035",
.str_error = "No value was found by '%.*s' on the specified path.",
.str_user_error = "No value was found by '%.192s' on the specified path.",
.oracle_errno = 600,
.oracle_str_error = "ORA-00600: No value was found by '%.192s' on the specified path.",
.oracle_str_user_error = "ORA-00600: No value was found by '%.192s' on the specified path."
.oracle_errno = 40462,
.oracle_str_error = "ORA-40462: JSON_VALUE evaluated to no value",
.oracle_str_user_error = "ORA-40462: '%.192s' evaluated to no value"
};
static const _error _error_OB_ERR_MULTIPLE_JSON_VALUES = {
.error_name = "OB_ERR_MULTIPLE_JSON_VALUES",
@ -11069,9 +11069,9 @@ static const _error _error_OB_ERR_MULTIPLE_JSON_VALUES = {
.sqlstate = "22034",
.str_error = "More than one value was found by '%.*s' on the specified path.",
.str_user_error = "More than one value was found by '%.192s' on the specified path.",
.oracle_errno = 600,
.oracle_str_error = "ORA-00600: More than one value was found by '%.192s' on the specified path.",
.oracle_str_user_error = "ORA-00600: More than one value was found by '%.192s' on the specified path."
.oracle_errno = 40470,
.oracle_str_error = "ORA-40470: More than one value was found by '%.192s' on the specified path.",
.oracle_str_user_error = "ORA-40470: More than one value was found by '%.192s' on the specified path."
};
static const _error _error_OB_SQL_RETRY_SPM = {
.error_name = "OB_SQL_RETRY_SPM",
@ -11157,6 +11157,582 @@ static const _error _error_OB_EER_WINDOW_NO_REDEFINE_ORDER_BY = {
.oracle_str_error = "ORA-00600: internal error code, arguments: -5440, Named window cann't be modified by another ordering property",
.oracle_str_user_error = "ORA-00600: internal error code, arguments: -5440, Window '%.*s' cannot inherit '%.*s' since both contain an ORDER BY clause"
};
static const _error _error_OB_ERR_INVALID_JSON_TYPE = {
.error_name = "OB_ERR_INVALID_JSON_TYPE",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "invalid JSON type.",
.str_user_error = "invalid JSON type.",
.oracle_errno = 40587,
.oracle_str_error = "ORA-40587: invalid JSON type.",
.oracle_str_user_error = "ORA-40587: invalid JSON type."
};
static const _error _error_OB_ERR_JSON_PATH_SYNTAX_ERROR = {
.error_name = "OB_ERR_JSON_PATH_SYNTAX_ERROR",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "JSON path expression syntax error ('INT')",
.str_user_error = "JSON path expression syntax error ('%s')",
.oracle_errno = 40442,
.oracle_str_error = "ORA-40442: JSON path expression syntax error ('INT')",
.oracle_str_user_error = "ORA-40442: JSON path expression syntax error ('%s')"
};
static const _error _error_OB_ERR_INVALID_DATA_TYPE_RETURNING = {
.error_name = "OB_ERR_INVALID_DATA_TYPE_RETURNING",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "invalid data type for return value",
.str_user_error = "invalid data type for return value",
.oracle_errno = 40449,
.oracle_str_error = "ORA-40449: invalid data type for return value",
.oracle_str_user_error = "ORA-40449: invalid data type for return value"
};
static const _error _error_OB_ERR_JSON_VALUE_NO_SCALAR = {
.error_name = "OB_ERR_JSON_VALUE_NO_SCALAR",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "JSON_VALUE evaluated to non-scalar value",
.str_user_error = "JSON_VALUE evaluated to non-scalar value",
.oracle_errno = 40456,
.oracle_str_error = "ORA-40456: JSON_VALUE evaluated to non-scalar value",
.oracle_str_user_error = "ORA-40456: JSON_VALUE evaluated to non-scalar value"
};
static const _error _error_OB_ERR_JSON_VALUE_NO_VALUE = {
.error_name = "OB_ERR_JSON_VALUE_NO_VALUE",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "JSON_VALUE evaluated to no value",
.str_user_error = "JSON_VALUE evaluated to no value",
.oracle_errno = 40462,
.oracle_str_error = "ORA-40462: JSON_VALUE evaluated to no value",
.oracle_str_user_error = "ORA-40462: JSON_VALUE evaluated to no value"
};
static const _error _error_OB_ERR_DEFAULT_VALUE_NOT_LITERAL = {
.error_name = "OB_ERR_DEFAULT_VALUE_NOT_LITERAL",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "default value not a literal",
.str_user_error = "default value not a literal",
.oracle_errno = 40455,
.oracle_str_error = "ORA-40455: default value not a literal",
.oracle_str_user_error = "ORA-40455: default value not a literal"
};
static const _error _error_OB_ERR_JSON_SYNTAX_ERROR = {
.error_name = "OB_ERR_JSON_SYNTAX_ERROR",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "JSON syntax error",
.str_user_error = "JSON syntax error",
.oracle_errno = 40441,
.oracle_str_error = "ORA-40441: JSON syntax error",
.oracle_str_user_error = "ORA-40441: JSON syntax error"
};
static const _error _error_OB_ERR_JSON_EQUAL_OUTSIDE_PREDICATE = {
.error_name = "OB_ERR_JSON_EQUAL_OUTSIDE_PREDICATE",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "JSON_EQUAL used outside predicate",
.str_user_error = "JSON_EQUAL used outside predicate",
.oracle_errno = 40600,
.oracle_str_error = "ORA-40600: JSON_EQUAL used outside predicate",
.oracle_str_user_error = "ORA-40600: JSON_EQUAL used outside predicate"
};
static const _error _error_OB_ERR_WITHOUT_ARR_WRAPPER = {
.error_name = "OB_ERR_WITHOUT_ARR_WRAPPER",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "result cannot be returned without array wrapper",
.str_user_error = "result cannot be returned without array wrapper",
.oracle_errno = 40480,
.oracle_str_error = "ORA-40480: result cannot be returned without array wrapper",
.oracle_str_user_error = "ORA-40480: result cannot be returned without array wrapper"
};
static const _error _error_OB_ERR_JSON_PATCH_INVALID = {
.error_name = "OB_ERR_JSON_PATCH_INVALID",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "Patch specification is not valid JSON",
.str_user_error = "Patch specification is not valid JSON",
.oracle_errno = 40629,
.oracle_str_error = "ORA-40629: Patch specification is not valid JSON",
.oracle_str_user_error = "ORA-40629: Patch specification is not valid JSON"
};
static const _error _error_OB_ERR_ORDER_SIBLINGS_BY_NOT_ALLOWED = {
.error_name = "OB_ERR_ORDER_SIBLINGS_BY_NOT_ALLOWED",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "ORDER SIBLINGS BY clause not allowed here",
.str_user_error = "ORDER SIBLINGS BY clause not allowed here",
.oracle_errno = 30929,
.oracle_str_error = "ORA-30929: ORDER SIBLINGS BY clause not allowed here",
.oracle_str_user_error = "ORA-30929: ORDER SIBLINGS BY clause not allowed here"
};
static const _error _error_OB_ERR_LOB_TYPE_NOT_SORTING = {
.error_name = "OB_ERR_LOB_TYPE_NOT_SORTING",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "Column of LOB type cannot be used for sorting",
.str_user_error = "Column of LOB type cannot be used for sorting",
.oracle_errno = 40750,
.oracle_str_error = "ORA-40750: Column of LOB type cannot be used for sorting",
.oracle_str_user_error = "ORA-40750: Column of LOB type cannot be used for sorting"
};
static const _error _error_OB_ERR_DUPLICATE_KEY = {
.error_name = "OB_ERR_DUPLICATE_KEY",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "duplicate key names in JSON object",
.str_user_error = "duplicate key names in JSON object",
.oracle_errno = 40473,
.oracle_str_error = "ORA-40473: duplicate key names in JSON object",
.oracle_str_user_error = "ORA-40473: duplicate key names in JSON object"
};
static const _error _error_OB_ERR_JSON_PATH_EXPRESSION_SYNTAX_ERROR = {
.error_name = "OB_ERR_JSON_PATH_EXPRESSION_SYNTAX_ERROR",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "JSON path expression syntax error ('')",
.str_user_error = "JSON path expression syntax error ('%.*s')",
.oracle_errno = 40597,
.oracle_str_error = "ORA-40597: JSON path expression syntax error ('')",
.oracle_str_user_error = "ORA-40597: JSON path expression syntax error ('%.*s')"
};
static const _error _error_OB_ERR_JSON_ILLEGAL_ZERO_LENGTH_IDENTIFIER_ERROR = {
.error_name = "OB_ERR_JSON_ILLEGAL_ZERO_LENGTH_IDENTIFIER_ERROR",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "illegal zero-length identifier",
.str_user_error = "illegal zero-length identifier",
.oracle_errno = 01741,
.oracle_str_error = "ORA-01741: illegal zero-length identifier",
.oracle_str_user_error = "ORA-01741: illegal zero-length identifier"
};
static const _error _error_OB_ERR_NO_VALUE_IN_PASSING = {
.error_name = "OB_ERR_NO_VALUE_IN_PASSING",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "Variable in JSON path expression has no value in PASSING clause.",
.str_user_error = "Variable in JSON path expression has no value in PASSING clause.",
.oracle_errno = 40656,
.oracle_str_error = "ORA-40656: Variable in JSON path expression has no value in PASSING clause.",
.oracle_str_user_error = "ORA-40656: Variable in JSON path expression has no value in PASSING clause."
};
static const _error _error_OB_ERR_INVALID_COLUMN_SPE = {
.error_name = "OB_ERR_INVALID_COLUMN_SPE",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "JSON syntax error",
.str_user_error = "JSON syntax error",
.oracle_errno = 1747,
.oracle_str_error = "ORA-01747: invalid user.table.column, table.column, or column specification",
.oracle_str_user_error = "ORA-01747: invalid user.table.column, table.column, or column specification"
};
static const _error _error_OB_ERR_INPUT_JSON_NOT_BE_NULL = {
.error_name = "OB_ERR_INPUT_JSON_NOT_BE_NULL",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "JSON syntax error",
.str_user_error = "JSON syntax error",
.oracle_errno = 40595,
.oracle_str_error = "ORA-40595: Name input to JSON generation function cannot be null",
.oracle_str_user_error = "ORA-40595: Name input to JSON generation function cannot be null"
};
static const _error _error_OB_ERR_INVALID_DATA_TYPE = {
.error_name = "OB_ERR_INVALID_DATA_TYPE",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "invalid data type for '%s' column",
.str_user_error = "invalid data type for '%s' column",
.oracle_errno = 40484,
.oracle_str_error = "ORA-40484: invalid data type for '%s' column",
.oracle_str_user_error = "ORA-40484: invalid data type for '%s' column"
};
static const _error _error_OB_ERR_INVALID_CLAUSE = {
.error_name = "OB_ERR_INVALID_CLAUSE",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "invalid '%s' clause",
.str_user_error = "invalid '%s' clause",
.oracle_errno = 40450,
.oracle_str_error = "ORA-40450: invalid '%s' clause",
.oracle_str_user_error = "ORA-40450: invalid '%s' clause"
};
static const _error _error_OB_ERR_INVALID_CMP_OP = {
.error_name = "OB_ERR_INVALID_CMP_OP",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "invalid comparison operation involving JSON type value",
.str_user_error = "invalid comparison operation involving JSON type value",
.oracle_errno = 40796,
.oracle_str_error = "ORA-40796: invalid comparison operation involving JSON type value",
.oracle_str_user_error = "ORA-40796: invalid comparison operation involving JSON type value"
};
static const _error _error_OB_ERR_INVALID_INPUT = {
.error_name = "OB_ERR_INVALID_INPUT",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "Invalid Input",
.str_user_error = "Invalid Input",
.oracle_errno = 30980,
.oracle_str_error = "ORA-30980: Invalid Input",
.oracle_str_user_error = "ORA-30980: Invalid Input"
};
static const _error _error_OB_ERR_EMPTY_INPUT_TO_JSON_OPERATOR = {
.error_name = "OB_ERR_EMPTY_INPUT_TO_JSON_OPERATOR",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "empty input to JSON operator",
.str_user_error = "empty input to JSON operator",
.oracle_errno = 40833,
.oracle_str_error = "ORA-40833: empty input to JSON operator",
.oracle_str_user_error = "ORA-40833: empty input to JSON operator"
};
static const _error _error_OB_ERR_ADDITIONAL_IS_JSON = {
.error_name = "OB_ERR_ADDITIONAL_IS_JSON",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "cannot add additional IS jSON check constraint",
.str_user_error = "cannot add additional IS jSON check constraint",
.oracle_errno = 40664,
.oracle_str_error = "ORA-40664: cannot add additional IS jSON check constraint",
.oracle_str_user_error = "ORA-40664: cannot add additional IS jSON check constraint"
};
static const _error _error_OB_ERR_FUNCTION_INVALID_STATE = {
.error_name = "OB_ERR_FUNCTION_INVALID_STATE",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "Package or function PRO is in an invalid state",
.str_user_error = "Package or function PRO is in an invalid state",
.oracle_errno = 6575,
.oracle_str_error = "ORA-06575: Package or function PRO is in an invalid state",
.oracle_str_user_error = "ORA-06575: Package or function PRO is in an invalid state"
};
static const _error _error_OB_ERR_MISS_VALUE = {
.error_name = "OB_ERR_MISS_VALUE",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "HY000",
.str_error = "missing VALUE keyword",
.str_user_error = "missing VALUE keyword",
.oracle_errno = 2000,
.oracle_str_error = "ORA-02000: missing VALUE keyword",
.oracle_str_user_error = "ORA-02000: missing VALUE keyword"
};
static const _error _error_OB_ERR_DIFFERENT_TYPE_SELECTED = {
.error_name = "OB_ERR_DIFFERENT_TYPE_SELECTED",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "JSON path expression selected a value of different data type",
.str_user_error = "JSON path expression selected a value of different data type",
.oracle_errno = 40566,
.oracle_str_error = "ORA-40566: JSON path expression selected a value of different data type",
.oracle_str_user_error = "ORA-40566: JSON path expression selected a value of different data type"
};
static const _error _error_OB_ERR_NO_VALUE_SELECTED = {
.error_name = "OB_ERR_NO_VALUE_SELECTED",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "JSON path expression did not select a value.",
.str_user_error = "JSON path expression did not select a value.",
.oracle_errno = 40565,
.oracle_str_error = "ORA-40565: JSON path expression did not select a value.",
.oracle_str_user_error = "ORA-40565: JSON path expression did not select a value."
};
static const _error _error_OB_ERR_NON_TEXT_RET_NOTSUPPORT = {
.error_name = "OB_ERR_NON_TEXT_RET_NOTSUPPORT",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "ASCII or PRETTY not supported for non-textual return data type",
.str_user_error = "ASCII or PRETTY not supported for non-textual return data type",
.oracle_errno = 40481,
.oracle_str_error = "ORA-40481: ASCII or PRETTY not supported for non-textual return data type",
.oracle_str_user_error = "ORA-40481: ASCII or PRETTY not supported for non-textual return data type"
};
static const _error _error_OB_ERR_PL_JSONTYPE_USAGE = {
.error_name = "OB_ERR_PL_JSONTYPE_USAGE",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "Invalid use of PL/SQL JSON object type",
.str_user_error = "Invalid use of PL/SQL JSON object type",
.oracle_errno = 40573,
.oracle_str_error = "ORA-40573: Invalid use of PL/SQL JSON object type",
.oracle_str_user_error = "ORA-40573: Invalid use of PL/SQL JSON object type"
};
static const _error _error_OB_ERR_NULL_INPUT = {
.error_name = "OB_ERR_NULL_INPUT",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "Input cannot be null",
.str_user_error = "Input cannot be null",
.oracle_errno = 64403,
.oracle_str_error = "ORA-64403: Input cannot be null",
.oracle_str_user_error = "ORA-64403: Input cannot be null"
};
static const _error _error_OB_ERR_NOT_ISO_8601_FORMAT = {
.error_name = "OB_ERR_NOT_ISO_8601_FORMAT",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "date or time stamp string value does not conform to ISO 8601 format",
.str_user_error = "Jdate or time stamp string value does not conform to ISO 8601 format",
.oracle_errno = 40688,
.oracle_str_error = "ORA-40688: date or time stamp string value does not conform to ISO 8601 format",
.oracle_str_user_error = "ORA-40688: date or time stamp string value does not conform to ISO 8601 format"
};
static const _error _error_OB_ERR_VALUE_EXCEEDED_MAX = {
.error_name = "OB_ERR_VALUE_EXCEEDED_MAX",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "value is out of range",
.str_user_error = "%d value is out of range in %d",
.oracle_errno = 40459,
.oracle_str_error = "ORA-40459: output value too large",
.oracle_str_user_error = "ORA-40459: output value too large (actual: %d, maximum: %d)"
};
static const _error _error_OB_ERR_DEFAULT_VALUE_NOT_MATCH = {
.error_name = "OB_ERR_DEFAULT_VALUE_NOT_MATCH",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "default value not matching type defined in RETURNING clause",
.str_user_error = "default value not matching type defined in RETURNING clause",
.oracle_errno = 40452,
.oracle_str_error = "ORA-40452: default value not matching type defined in RETURNING clause",
.oracle_str_user_error = "ORA-40452: default value not matching type defined in RETURNING clause"
};
static const _error _error_OB_ERR_BOOL_NOT_CONVERT_NUMBER = {
.error_name = "OB_ERR_BOOL_NOT_CONVERT_NUMBER",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "cannot convert Boolean value to number",
.str_user_error = "cannot convert Boolean value to number",
.oracle_errno = 40799,
.oracle_str_error = "ORA-40799: cannot convert Boolean value to number",
.oracle_str_user_error = "ORA-40799: cannot convert Boolean value to number"
};
static const _error _error_OB_ERR_CONVERSION_FAIL = {
.error_name = "OB_ERR_CONVERSION_FAIL",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "JSON conversion failed",
.str_user_error = "JSON conversion failed",
.oracle_errno = 40570,
.oracle_str_error = "ORA-40570: JSON conversion failed",
.oracle_str_user_error = "ORA-40570: JSON conversion failed"
};
static const _error _error_OB_ERR_NOT_OBJ_REF = {
.error_name = "OB_ERR_NOT_OBJ_REF",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "not an object or REF",
.str_user_error = "not an object or REF",
.oracle_errno = 22806,
.oracle_str_error = "ORA-22806: not an object or REF",
.oracle_str_user_error = "ORA-22806: not an object or REF"
};
static const _error _error_OB_ERR_UNSUPPORT_TRUNCATE_TYPE = {
.error_name = "OB_ERR_UNSUPPORT_TRUNCATE_TYPE",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "Truncation is not supported with data type in RETURNING clause",
.str_user_error = "Truncation is not supported with data type in RETURNING clause",
.oracle_errno = 40779,
.oracle_str_error = "ORA-40779: Truncation is not supported with data type in RETURNING clause",
.oracle_str_user_error = "ORA-40779: Truncation is not supported with data type in RETURNING clause"
};
static const _error _error_OB_ERR_UNIMPLEMENT_JSON_FEATURE = {
.error_name = "OB_ERR_UNIMPLEMENT_JSON_FEATURE",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "Unimplemented JSON feature",
.str_user_error = "Unimplemented JSON feature",
.oracle_errno = 40569,
.oracle_str_error = "ORA-40569: Unimplemented JSON feature",
.oracle_str_user_error = "ORA-40569: Unimplemented JSON feature"
};
static const _error _error_OB_ERR_USAGE_KEYWORD = {
.error_name = "OB_ERR_USAGE_KEYWORD",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "invalid usage of keyword EXISTS",
.str_user_error = "invalid usage of keyword EXISTS",
.oracle_errno = 40487,
.oracle_str_error = "ORA-40487: invalid usage of keyword EXISTS",
.oracle_str_user_error = "ORA-40487: invalid usage of keyword EXISTS"
};
static const _error _error_OB_ERR_INPUT_JSON_TABLE = {
.error_name = "OB_ERR_INPUT_JSON_TABLE",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "invalid input data type for JSON_TABLE",
.str_user_error = "invalid input data type for JSON_TABLE",
.oracle_errno = 40491,
.oracle_str_error = "ORA-40491: invalid input data type for JSON_TABLE",
.oracle_str_user_error = "ORA-40491: invalid input data type for JSON_TABLE"
};
static const _error _error_OB_ERR_BOOL_CAST_NUMBER = {
.error_name = "OB_ERR_BOOL_CAST_NUMBER",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "cannot convert Boolean value to number",
.str_user_error = "cannot convert Boolean value to number",
.oracle_errno = 40799,
.oracle_str_error = "ORA-40799: cannot convert Boolean value to number",
.oracle_str_user_error = "ORA-40799: cannot convert Boolean value to number"
};
static const _error _error_OB_ERR_NESTED_PATH_DISJUNCT = {
.error_name = "OB_ERR_NESTED_PATH_DISJUNCT",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "JSON_TABLE nested path expressions not disjunct",
.str_user_error = "JSON_TABLE nested path expressions not disjunct",
.oracle_errno = 40560,
.oracle_str_error = "ORA-40560: JSON_TABLE nested path expressions not disjunct",
.oracle_str_user_error = "ORA-40560: JSON_TABLE nested path expressions not disjunct"
};
static const _error _error_OB_ERR_INVALID_VARIABLE_IN_JSON_PATH = {
.error_name = "OB_ERR_INVALID_VARIABLE_IN_JSON_PATH",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = " Invalid use of bind variable in SQL/JSON path.",
.str_user_error = " Invalid use of bind variable in SQL/JSON path.",
.oracle_errno = 40576,
.oracle_str_error = "ORA-40576: Invalid use of bind variable in SQL/JSON path.",
.oracle_str_user_error = "ORA-40576: Invalid use of bind variable in SQL/JSON path."
};
static const _error _error_OB_ERR_JSON_KEY_NOT_FOUND = {
.error_name = "OB_ERR_JSON_KEY_NOT_FOUND",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "JSON key name not found.",
.str_user_error = "JSON key name not found.",
.oracle_errno = 40571,
.oracle_str_error = "ORA-40571: JSON key name not found.",
.oracle_str_user_error = "ORA-40571: JSON key name not found."
};
static const _error _error_OB_ERR_INVALID_DEFAULT_VALUE_PROVIDED = {
.error_name = "OB_ERR_INVALID_DEFAULT_VALUE_PROVIDED",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "Invalid numeric",
.str_user_error = "Invalid numeric",
.oracle_errno = 40451,
.oracle_str_error = "ORA-40451: invalid default value provided",
.oracle_str_user_error = "ORA-40451: invalid default value provided"
};
static const _error _error_OB_ERR_PATH_EXPRESSION_NOT_LITERAL = {
.error_name = "OB_ERR_PATH_EXPRESSION_NOT_LITERAL",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "42000",
.str_error = "path expression not a literal",
.str_user_error = "path expression not a literal",
.oracle_errno = 40454,
.oracle_str_error = "ORA-40454: path expression not a literal",
.oracle_str_user_error = "ORA-40454: path expression not a literal"
};
static const _error _error_OB_ERR_INVALID_ARGUMENT_FOR_JSON_CALL = {
.error_name = "OB_ERR_INVALID_ARGUMENT_FOR_JSON_CALL",
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = -1,
.sqlstate = "HY000",
.str_error = "invalid argument for JSON call",
.str_user_error = "invalid argument for %s call",
.oracle_errno = 185,
.oracle_str_error = "PLS-00185: invalid argument for JSON call",
.oracle_str_user_error = "PLS-00185: invalid argument for %s call"
};
static const _error _error_OB_ERR_SP_ALREADY_EXISTS = {
.error_name = "OB_ERR_SP_ALREADY_EXISTS",
.error_cause = "Internal Error",
@ -24416,6 +24992,54 @@ struct ObStrErrorInit
_errors[-OB_EER_WINDOW_NO_CHILD_PARTITIONING] = &_error_OB_EER_WINDOW_NO_CHILD_PARTITIONING;
_errors[-OB_EER_WINDOW_NO_INHERIT_FRAME] = &_error_OB_EER_WINDOW_NO_INHERIT_FRAME;
_errors[-OB_EER_WINDOW_NO_REDEFINE_ORDER_BY] = &_error_OB_EER_WINDOW_NO_REDEFINE_ORDER_BY;
_errors[-OB_ERR_INVALID_JSON_TYPE] = &_error_OB_ERR_INVALID_JSON_TYPE;
_errors[-OB_ERR_JSON_PATH_SYNTAX_ERROR] = &_error_OB_ERR_JSON_PATH_SYNTAX_ERROR;
_errors[-OB_ERR_INVALID_DATA_TYPE_RETURNING] = &_error_OB_ERR_INVALID_DATA_TYPE_RETURNING;
_errors[-OB_ERR_JSON_VALUE_NO_SCALAR] = &_error_OB_ERR_JSON_VALUE_NO_SCALAR;
_errors[-OB_ERR_JSON_VALUE_NO_VALUE] = &_error_OB_ERR_JSON_VALUE_NO_VALUE;
_errors[-OB_ERR_DEFAULT_VALUE_NOT_LITERAL] = &_error_OB_ERR_DEFAULT_VALUE_NOT_LITERAL;
_errors[-OB_ERR_JSON_SYNTAX_ERROR] = &_error_OB_ERR_JSON_SYNTAX_ERROR;
_errors[-OB_ERR_JSON_EQUAL_OUTSIDE_PREDICATE] = &_error_OB_ERR_JSON_EQUAL_OUTSIDE_PREDICATE;
_errors[-OB_ERR_WITHOUT_ARR_WRAPPER] = &_error_OB_ERR_WITHOUT_ARR_WRAPPER;
_errors[-OB_ERR_JSON_PATCH_INVALID] = &_error_OB_ERR_JSON_PATCH_INVALID;
_errors[-OB_ERR_ORDER_SIBLINGS_BY_NOT_ALLOWED] = &_error_OB_ERR_ORDER_SIBLINGS_BY_NOT_ALLOWED;
_errors[-OB_ERR_LOB_TYPE_NOT_SORTING] = &_error_OB_ERR_LOB_TYPE_NOT_SORTING;
_errors[-OB_ERR_DUPLICATE_KEY] = &_error_OB_ERR_DUPLICATE_KEY;
_errors[-OB_ERR_JSON_PATH_EXPRESSION_SYNTAX_ERROR] = &_error_OB_ERR_JSON_PATH_EXPRESSION_SYNTAX_ERROR;
_errors[-OB_ERR_JSON_ILLEGAL_ZERO_LENGTH_IDENTIFIER_ERROR] = &_error_OB_ERR_JSON_ILLEGAL_ZERO_LENGTH_IDENTIFIER_ERROR;
_errors[-OB_ERR_NO_VALUE_IN_PASSING] = &_error_OB_ERR_NO_VALUE_IN_PASSING;
_errors[-OB_ERR_INVALID_COLUMN_SPE] = &_error_OB_ERR_INVALID_COLUMN_SPE;
_errors[-OB_ERR_INPUT_JSON_NOT_BE_NULL] = &_error_OB_ERR_INPUT_JSON_NOT_BE_NULL;
_errors[-OB_ERR_INVALID_DATA_TYPE] = &_error_OB_ERR_INVALID_DATA_TYPE;
_errors[-OB_ERR_INVALID_CLAUSE] = &_error_OB_ERR_INVALID_CLAUSE;
_errors[-OB_ERR_INVALID_CMP_OP] = &_error_OB_ERR_INVALID_CMP_OP;
_errors[-OB_ERR_INVALID_INPUT] = &_error_OB_ERR_INVALID_INPUT;
_errors[-OB_ERR_EMPTY_INPUT_TO_JSON_OPERATOR] = &_error_OB_ERR_EMPTY_INPUT_TO_JSON_OPERATOR;
_errors[-OB_ERR_ADDITIONAL_IS_JSON] = &_error_OB_ERR_ADDITIONAL_IS_JSON;
_errors[-OB_ERR_FUNCTION_INVALID_STATE] = &_error_OB_ERR_FUNCTION_INVALID_STATE;
_errors[-OB_ERR_MISS_VALUE] = &_error_OB_ERR_MISS_VALUE;
_errors[-OB_ERR_DIFFERENT_TYPE_SELECTED] = &_error_OB_ERR_DIFFERENT_TYPE_SELECTED;
_errors[-OB_ERR_NO_VALUE_SELECTED] = &_error_OB_ERR_NO_VALUE_SELECTED;
_errors[-OB_ERR_NON_TEXT_RET_NOTSUPPORT] = &_error_OB_ERR_NON_TEXT_RET_NOTSUPPORT;
_errors[-OB_ERR_PL_JSONTYPE_USAGE] = &_error_OB_ERR_PL_JSONTYPE_USAGE;
_errors[-OB_ERR_NULL_INPUT] = &_error_OB_ERR_NULL_INPUT;
_errors[-OB_ERR_NOT_ISO_8601_FORMAT] = &_error_OB_ERR_NOT_ISO_8601_FORMAT;
_errors[-OB_ERR_VALUE_EXCEEDED_MAX] = &_error_OB_ERR_VALUE_EXCEEDED_MAX;
_errors[-OB_ERR_DEFAULT_VALUE_NOT_MATCH] = &_error_OB_ERR_DEFAULT_VALUE_NOT_MATCH;
_errors[-OB_ERR_BOOL_NOT_CONVERT_NUMBER] = &_error_OB_ERR_BOOL_NOT_CONVERT_NUMBER;
_errors[-OB_ERR_CONVERSION_FAIL] = &_error_OB_ERR_CONVERSION_FAIL;
_errors[-OB_ERR_NOT_OBJ_REF] = &_error_OB_ERR_NOT_OBJ_REF;
_errors[-OB_ERR_UNSUPPORT_TRUNCATE_TYPE] = &_error_OB_ERR_UNSUPPORT_TRUNCATE_TYPE;
_errors[-OB_ERR_UNIMPLEMENT_JSON_FEATURE] = &_error_OB_ERR_UNIMPLEMENT_JSON_FEATURE;
_errors[-OB_ERR_USAGE_KEYWORD] = &_error_OB_ERR_USAGE_KEYWORD;
_errors[-OB_ERR_INPUT_JSON_TABLE] = &_error_OB_ERR_INPUT_JSON_TABLE;
_errors[-OB_ERR_BOOL_CAST_NUMBER] = &_error_OB_ERR_BOOL_CAST_NUMBER;
_errors[-OB_ERR_NESTED_PATH_DISJUNCT] = &_error_OB_ERR_NESTED_PATH_DISJUNCT;
_errors[-OB_ERR_INVALID_VARIABLE_IN_JSON_PATH] = &_error_OB_ERR_INVALID_VARIABLE_IN_JSON_PATH;
_errors[-OB_ERR_JSON_KEY_NOT_FOUND] = &_error_OB_ERR_JSON_KEY_NOT_FOUND;
_errors[-OB_ERR_INVALID_DEFAULT_VALUE_PROVIDED] = &_error_OB_ERR_INVALID_DEFAULT_VALUE_PROVIDED;
_errors[-OB_ERR_PATH_EXPRESSION_NOT_LITERAL] = &_error_OB_ERR_PATH_EXPRESSION_NOT_LITERAL;
_errors[-OB_ERR_INVALID_ARGUMENT_FOR_JSON_CALL] = &_error_OB_ERR_INVALID_ARGUMENT_FOR_JSON_CALL;
_errors[-OB_ERR_SP_ALREADY_EXISTS] = &_error_OB_ERR_SP_ALREADY_EXISTS;
_errors[-OB_ERR_SP_DOES_NOT_EXIST] = &_error_OB_ERR_SP_DOES_NOT_EXIST;
_errors[-OB_ERR_SP_UNDECLARED_VAR] = &_error_OB_ERR_SP_UNDECLARED_VAR;