[unixODBC-dev] API differences sql.h unixODBC vs. MS

Nick Gorham nick.gorham at easysoft.com
Mon Dec 20 17:54:11 GMT 2004


Eric Sharkey wrote:

>Hi all,
>
>I'm writing an ODBC driver and I'm running into some small differences
>in the SQL function API's as listed in unixODBC's sql.h compared with
>the MS version.
>
>For example, from MS's SQL.H I have:
>
>SQLRETURN  SQL_API SQLBindCol(SQLHSTMT StatementHandle,
>                   SQLUSMALLINT ColumnNumber, SQLSMALLINT TargetType,
>                   SQLPOINTER TargetValue, SQLINTEGER BufferLength,
>                   SQLINTEGER *StrLen_or_Ind);
>
>and unixODBC defines:
>
>SQLRETURN  SQL_API SQLBindCol(SQLHSTMT StatementHandle,
>                   SQLUSMALLINT ColumnNumber, SQLSMALLINT TargetType,
>                   SQLPOINTER TargetValue, SQLLEN BufferLength,
>                   SQLLEN *StrLen_or_Ind);
>
>Where two SQLLENs used in unixODBC are SQLINTEGERs in the MS
>version.
>  
>

Hi,

I think you may be using a old version of the MS headers, unixODBC was 
changed to match the newer MS headers, where SQLLEN is used as you have 
found.

-- 
Nick



More information about the unixODBC-dev mailing list