dblink_write implement [FEAT MERGE]
Co-authored-by: zzg19950727 <1071026277@qq.com> Co-authored-by: xianyu-w <707512433@qq.com>
This commit is contained in:
@ -177,7 +177,8 @@ int ObCreateSynonymResolver::resolve(const ParseNode &parse_tree)
|
||||
// because we may create the dblink with link_name after
|
||||
// the synonym is created. check it in runtime.
|
||||
ParseNode *dblink_name_node = create_synonym_node->children_[6];
|
||||
if (dblink_name_node != NULL) {
|
||||
if (NULL != dblink_name_node && NULL != dblink_name_node->children_ && NULL != dblink_name_node->children_[0]) {
|
||||
dblink_name_node = dblink_name_node->children_[0];
|
||||
ObSqlString obj_with_dblink;
|
||||
const ObString &tmp_obj_name = create_synonym_stmt->get_object_name();
|
||||
// user write something like 'create synonym syn for remote_db.tbl_name@dblink'
|
||||
|
||||
Reference in New Issue
Block a user