fix bug of load data local can not find file
This commit is contained in:
@ -725,10 +725,8 @@ int ObLoadDataResolver::resolve_filename(ObLoadDataStmt *load_stmt, ParseNode *n
|
||||
if (OB_NOT_NULL(p = file_name.find(','))) {
|
||||
ret = OB_NOT_SUPPORTED;
|
||||
LOG_USER_ERROR(OB_NOT_SUPPORTED, "load multi files not supported");
|
||||
} else if (OB_FAIL(ob_write_string(*allocator_, file_name, cstyle_file_name, true))) {
|
||||
LOG_WARN("fail to copy string", K(ret));
|
||||
} else if (OB_FAIL(load_args.file_iter_.add_files(&cstyle_file_name))) {
|
||||
LOG_WARN("fail to add files", K(ret));
|
||||
} else {
|
||||
load_args.file_name_ = file_name;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user