Skip to content

Commit 598a6be

Browse files
committed
fix linux
1 parent 960edef commit 598a6be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mssql_python/pybind/ddbc_bindings.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1804,7 +1804,8 @@ static py::object FetchLobColumnData(SQLHSTMT hStmt,
18041804
// Linux/macOS handling
18051805
size_t wcharCount = buffer.size() / sizeof(SQLWCHAR);
18061806
const SQLWCHAR* sqlwBuf = reinterpret_cast<const SQLWCHAR*>(buffer.data());
1807-
std::string utf8str = SQLWCHARToUTF8String(sqlwBuf, wcharCount);
1807+
std::wstring wstr = SQLWCHARToWString(sqlwBuf, wcharCount);
1808+
std::string utf8str = WideToUTF8(wstr);
18081809
return py::str(utf8str);
18091810
#endif
18101811
}

0 commit comments

Comments
 (0)