Github user Weixin-Xu commented on a diff in the pull request:
https://github.com/apache/trafodion/pull/1501#discussion_r178220273
--- Diff: win-odbc64/odbcclient/drvr35/cstmt.cpp ---
@@ -1063,7 +1063,20 @@ SQLRETURN CStmt::SendSQLCommand(BOOL SkipProcess,
SQLCHAR *StatementText,
else
m_StmtType = TYPE_UNKNOWN;
}
-
+ else if (strcmp(token, "SET") == 0)
+ {
+ token = strtok(NULL, delimiters);
+ if (token != NULL && strcmp(token, "NAMES") == 0)
+ {
+ token = strtok(NULL, delimiters);
+ if (token != NULL && strcmp(token, "'UTF8'") == 0)
--- End diff --
The buffer will be considered as a query and sent to server.
---