Github user DaveBirdsall commented on a diff in the pull request:
https://github.com/apache/trafodion/pull/1501#discussion_r178103261
--- 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 --
I'm wondering if there should be an "else" for this "if"? Suppose I say,
"SET NAMES 'UTF9'", what happens?
---