fix bug of load data local can not find file

This commit is contained in:
obdev
2024-02-28 13:14:59 +00:00
committed by ob-robot
parent 17d0754077
commit 1c74f08fb1

View File

@ -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;
}
}
}