Github user Weixin-Xu commented on a diff in the pull request:

    https://github.com/apache/trafodion/pull/1311#discussion_r159803669
  
    --- Diff: win-odbc64/odbcclient/drvr35/sqltocconv.cpp ---
    @@ -36,6 +36,36 @@
     
     #define MAXCHARLEN 32768 //32K
     
    +// for server2008 when using function pow() then throws 
STATUS_ILLEGAL_INSTRUCTION
    +double pow(int base, short power, unsigned long *error)
    +{
    +   DWORD dwVersion = 0;
    +   DWORD dwBuild = 0;
    +
    +   dwVersion = GetVersion();
    +
    +   // Get the build number.
    +
    +   if (dwVersion < 0x80000000)
    +           dwBuild = (DWORD)(HIWORD(dwVersion));
    +
    +   double retValue = 1;
    --- End diff --
    
    Alright, I will change it, but is it return code meaningful when judging 
pow succeeded or not with return Value.


---

Reply via email to