[FEAT MERGE] implement mysql dblink and read consistency

Co-authored-by: xianyu-w <707512433@qq.com>
Co-authored-by: sdc <njucssdc@gmail.com>
Co-authored-by: seuwebber <webber_code@163.com>
This commit is contained in:
cqliang1995
2023-05-09 18:32:03 +00:00
committed by ob-robot
parent 38b78ad442
commit 4108e781d4
132 changed files with 2726 additions and 818 deletions

View File

@ -92,11 +92,12 @@ int ObCreateViewResolver::resolve(const ParseNode &parse_tree)
ObNameCaseMode mode = OB_NAME_CASE_INVALID;
bool perserve_lettercase = false; // lib::is_oracle_mode() ? true : (mode != OB_LOWERCASE_AND_INSENSITIVE);
ObArray<ObString> column_list;
bool has_dblink_node = false;
if (OB_FAIL(resolve_table_relation_node(parse_tree.children_[VIEW_NODE],
view_name, db_name,
false, false, &dblink_name_ptr, &dblink_name_len))) {
false, false, &dblink_name_ptr, &dblink_name_len, &has_dblink_node))) {
LOG_WARN("failed to resolve table relation node!", K(ret));
} else if (NULL != dblink_name_ptr) { //don't care about dblink_name_len
} else if (has_dblink_node) { //don't care about dblink_name_len
ret = OB_ERR_MISSING_KEYWORD;
LOG_WARN("missing keyword when create view", K(ret));
LOG_USER_ERROR(OB_ERR_MISSING_KEYWORD);