3131#include < iterator>
3232#include < sstream>
3333
34- #include " arrow/util/logging.h" // -AL- TEMP
35-
3634using ODBC::SetAttributeSQLWCHAR;
3735
3836namespace arrow ::flight::sql::odbc {
@@ -49,14 +47,7 @@ std::string ReadDsnString(const std::string& dsn, std::string_view key,
4947 CONVERT_WIDE_STR (const std::wstring wkey, key);
5048 CONVERT_WIDE_STR (const std::wstring wdflt, dflt);
5149
52- // -AL- found workaround for `cannot convert 'const wchar_t*' to 'LPCWSTR' {aka
53- // 'const short unsigned int*'}` on Linux. Notes in this file for reference only.
54-
55- // Via CONVERT_WIDE_STR, Arrow correctly converts to UFT-32 on Unix systems,
56- // so the conversion from wchar_t to short unsigned int* will work on Linux.
57-
58- // -AL- I just need to wrap `reinterpret_cast<LPCWSTR>()` on all string args for
59- // SQLGetPrivateProfileString.
50+ // TODO: implement proper Linux unicode support in separate PR
6051
6152#define BUFFER_SIZE (1024 )
6253 std::vector<SQLWCHAR> buf (BUFFER_SIZE);
@@ -75,11 +66,7 @@ std::string ReadDsnString(const std::string& dsn, std::string_view key,
7566 }
7667
7768 std::string result (" " );
78- ARROW_LOG (DEBUG) << " -AL- ReadDsnString key: " << key;
79- ARROW_LOG (DEBUG) << " -AL- ReadDsnString result before: " << result;
8069 SetAttributeSQLWCHAR (buf.data (), ret * GetSqlWCharSize (), result);
81- ARROW_LOG (DEBUG) << " -AL- ReadDsnString result: " << result;
82- ARROW_LOG (DEBUG) << " -AL- ReadDsnString ret: " << ret;
8370 return result;
8471}
8572
@@ -127,7 +114,6 @@ std::vector<std::string> ReadAllKeys(const std::string& dsn) {
127114 SQLINTEGER key_len = cur - begin;
128115 SetAttributeSQLWCHAR (begin, key_len * GetSqlWCharSize (), key);
129116 keys.emplace_back (key);
130- ARROW_LOG (DEBUG) << " -AL- ReadAllKeys key: " << key;
131117 begin = ++cur;
132118 }
133119 return keys;
0 commit comments