[sqlapi-announce] SQLAPI++ library 4.0.2 bugfix (SQLServer ODBC API connection fails)

  • From: Sergey Chumakov <support@xxxxxxxxxx>
  • To: sqlapi-announce@xxxxxxxxxxxxx
  • Date: Wed, 28 Nov 2012 09:49:22 +0300

2012-11-28

-- SQLServer: ODBC API, fixed bug with connection string parsing (thanks Hide Ishikuri).

Use attached file for 4.0.2 sources patching. It fixes the situation when SQLServer ODBC API connection is impossible with SAException messages like
'Invalid value specified for connection string attribute ...' or
'Login failed for user ...'

--
Best regards,
Sergey Chumakov, SQLAPI++ development team

















*** ssNcliClient.cpp    24 Jun 2012 15:55:13 -0000      1.21
--- ssNcliClient.cpp    28 Nov 2012 04:53:37 -0000
***************
*** 517,523 ****
                }
                else
                        sConnectString += _TSA(";Trusted_Connection=yes");
!               if( iPosRest > 0 )
                        sConnectString += sDBString.Mid(iPosRest);
  
                SQLWCHAR OutConnectionString[1024];
--- 517,523 ----
                }
                else
                        sConnectString += _TSA(";Trusted_Connection=yes");
!               if( iPosRest != SIZE_MAX )
                        sConnectString += sDBString.Mid(iPosRest);
  
                SQLWCHAR OutConnectionString[1024];

Other related posts:

  • » [sqlapi-announce] SQLAPI++ library 4.0.2 bugfix (SQLServer ODBC API connection fails) - Sergey Chumakov