trafodion-codereview mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Weixin-Xu <...@git.apache.org>
Subject [GitHub] trafodion pull request #1501: [TRAFODION-3016] Windows ODBC do not support o...
Date Fri, 30 Mar 2018 01:58:15 GMT
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.


---

Mime
View raw message