Skip to content

Commit

Permalink
make copy from the original string just in case
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-ext-simba-hx authored and Harry Xi committed Nov 3, 2023
1 parent e393901 commit 0938f04
Showing 1 changed file with 2 additions and 2 deletions.
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 0938f04

Please sign in to comment.