Skip to content

Commit

Permalink
fix test case failures on jenkins Windows run (#604)
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Xi authored Nov 3, 2023
1 parent cd072c3 commit be806cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion cpp/FileMetadataInitializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ void Snowflake::Client::FileMetadataInitializer::populateSrcLocUploadMetadata(st
if (hFind == INVALID_HANDLE_VALUE)
{
DWORD dwError = GetLastError();
if (dwError == ERROR_NO_MORE_FILES || dwError == ERROR_FILE_NOT_FOUND)
if (dwError == ERROR_NO_MORE_FILES || dwError == ERROR_FILE_NOT_FOUND ||
dwError == ERROR_PATH_NOT_FOUND)
{
CXX_LOG_ERROR("No file matching pattern %s has been found. Error: %d",
sourceLocation.c_str(), dwError);
Expand Down
4 changes: 2 additions & 2 deletions include/snowflake/IStatementPutGet.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ class IStatementPutGet
// from system locale. No coversion by default.
virtual std::string UTF8ToPlatformString(const std::string& utf8_str)
{
return utf8_str;
return std::string(utf8_str);
}

virtual std::string platformStringToUTF8(const std::string& platform_str)
{
return platform_str;
return std::string(platform_str);
}

virtual ~IStatementPutGet()
Expand Down

0 comments on commit be806cf

Please sign in to comment.