[xml type] xml type use document/content/document_unparsed/content_unparsed

Co-authored-by: GroundWu <1175416256@qq.com>
This commit is contained in:
obdev
2023-06-02 04:41:50 +00:00
committed by ob-robot
parent a58faa3aa8
commit 7adcede23b
5 changed files with 8 additions and 3 deletions

View File

@ -372,6 +372,7 @@ constexpr int OB_BACKUP_META_INDEX_NOT_EXIST = -9076;
constexpr int OB_BACKUP_DEVICE_OUT_OF_SPACE = -9082;
constexpr int OB_BACKUP_PWRITE_OFFSET_NOT_MATCH = -9083;
constexpr int OB_BACKUP_PWRITE_CONTENT_NOT_MATCH = -9084;
constexpr int OB_ERR_XML_PARSE = -9549;
constexpr int OB_ERR_XSLT_PARSE = -9574;
constexpr int OB_MAX_RAISE_APPLICATION_ERROR = -20000;
constexpr int OB_MIN_RAISE_APPLICATION_ERROR = -20999;

View File

@ -2079,7 +2079,7 @@ DEFINE_ORACLE_ERROR(OB_ERR_WHEN_CLAUSE, -9545, -1, "HY000", "WHEN clause cannot
DEFINE_ORACLE_ERROR(OB_ERR_NEW_OLD_REFERENCES, -9546, -1, "HY000", "NEW or OLD references not allowed in table level triggers", 4082, "NEW or OLD references not allowed in table level triggers");
DEFINE_PLS_ERROR_EXT(OB_ERR_TYPE_DECL_ILLEGAL, -9547, -1, "HY000", "%%TYPE must be applied to a variable, column, field or attribute, not to other", "%%TYPE must be applied to a variable, column, field or attribute, not to '%.*s'", 206, "%%TYPE must be applied to a variable, column, field or attribute, not to other", "%%TYPE must be applied to a variable, column, field or attribute, not to '%.*s'");
DEFINE_PLS_ERROR_EXT(OB_ERR_OBJECT_INVALID, -9548, -1, "HY000", "object is invalid", "object '%.*s' is invalid", 905, "object is invalid", "object '%.*s' is invalid");
DEFINE_ORACLE_ERROR(OB_ERR_XML_PARSE, -9549, -1, "HY000", "XML parsing failed", 31011, "XML parsing failed");
DEFINE_ORACLE_ERROR_DEP(OB_ERR_XML_PARSE, -9549, -1, "HY000", "XML parsing failed", 31011, "XML parsing failed");
DEFINE_PLS_ERROR_EXT(OB_ERR_EXP_NOT_ASSIGNABLE, -9550, -1, "HY000", "expression cannot be used as an assignment", "expression '%.*s' cannot be used as an assignment", 363, "expression cannot be used as an assignment", "expression '%.*s' cannot be used as an assignment");
DEFINE_ORACLE_ERROR(OB_ERR_CURSOR_CONTAIN_BOTH_REGULAR_AND_ARRAY, -9551, -1, "HY000", "Cursor contains both regular and array defines which is illegal", 29256, "Cursor contains both regular and array defines which is illegal");
DEFINE_PLS_ERROR(OB_ERR_STATIC_BOOL_EXPR, -9552, -1, "HY000", "a static boolean expression must be used", 174, "a static boolean expression must be used");

View File

@ -1541,7 +1541,6 @@ constexpr int OB_ERR_WHEN_CLAUSE = -9545;
constexpr int OB_ERR_NEW_OLD_REFERENCES = -9546;
constexpr int OB_ERR_TYPE_DECL_ILLEGAL = -9547;
constexpr int OB_ERR_OBJECT_INVALID = -9548;
constexpr int OB_ERR_XML_PARSE = -9549;
constexpr int OB_ERR_EXP_NOT_ASSIGNABLE = -9550;
constexpr int OB_ERR_CURSOR_CONTAIN_BOTH_REGULAR_AND_ARRAY = -9551;
constexpr int OB_ERR_STATIC_BOOL_EXPR = -9552;

View File

@ -7027,7 +7027,7 @@ int ObTransformPreProcess::transform_udt_column_value_xml_parse(ObDmlTableInfo &
type_expr->set_value(val);
type_expr->set_param(val);
ObObj well_form;
well_form.set_int(1); // OB_XML_NOT_WELLFORMED
well_form.set_int(0); // OB_XML_NOT_WELLFORMED
form_expr->set_value(well_form);
form_expr->set_param(well_form);
ObObj in_agg;

View File

@ -153,6 +153,11 @@ public:
return ObLibContainerNode::insert(pos, static_cast<TXmlNodeBase*>(node));
}
virtual int get_node_count(ObMulModeNodeType node_type, int &count)
{
return 0;
}
ObMulModeNodeType type() { return M_ELEMENT; }
virtual int remove(int64_t pos)