ODBC: Difference between revisions

From Elvanör's Technical Wiki
Jump to navigation Jump to search
No edit summary
 
Line 4: Line 4:


* Apparently, '''SQLBindCol''' does NOT accept a NULL pointer argument as its last argument (SQLLEN * StrLen_or_Ind). This leads to a segmentation fault and a crash when calling '''SQLFetch''' later. This does not seem conform to [http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odbc/htm/odbcodbc_api_reference.asp Microsoft specifications], since providing a NULL pointer is legal. Under Windows, this behavior does not happen.
* Apparently, '''SQLBindCol''' does NOT accept a NULL pointer argument as its last argument (SQLLEN * StrLen_or_Ind). This leads to a segmentation fault and a crash when calling '''SQLFetch''' later. This does not seem conform to [http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odbc/htm/odbcodbc_api_reference.asp Microsoft specifications], since providing a NULL pointer is legal. Under Windows, this behavior does not happen.
* A good documentation for unixODBC is [http://www.easysoft.com/developer/interfaces/odbc/linux.html available here.]

Revision as of 14:43, 1 February 2007

This article lists problems or things to remember when developing with ODBC for Naiade.

unixODBC

  • Apparently, SQLBindCol does NOT accept a NULL pointer argument as its last argument (SQLLEN * StrLen_or_Ind). This leads to a segmentation fault and a crash when calling SQLFetch later. This does not seem conform to Microsoft specifications, since providing a NULL pointer is legal. Under Windows, this behavior does not happen.