[unixODBC-dev] SQLSetStmtAttr()+SQL_ATTR_ROWS_FETCHED_PTR

Nick Gorham nick.gorham at easysoft.com
Wed Feb 4 09:32:43 GMT 2009


George Neill wrote:

>Nick,
>
>On Tue, Feb 3, 2009 at 5:10 AM, Nick Gorham <nick at lurcher.org> wrote:
>  
>
>>George Neill wrote:
>>
>>    
>>
>>>On Tue, Feb 3, 2009 at 2:11 AM, Nick Gorham <nick at lurcher.org> wrote:
>>>
>>>      
>>>
>>>>George Neill wrote:
>>>>
>>>>        
>>>>
>>>>>Hi All,
>>>>>
>>>>>I am having a little bit of confusion with SQLSetStmtAttr() and
>>>>>SQL_ATTR_ROWS_FETCHED_PTR.  From this documentation,
>>>>>http://www.unixodbc.org/doc/ODBC64.html, it states the Value/ValuePtr
>>>>>should be of type SQLULEN ... but the actual code seems to use
>>>>>SQLUINTEGER.  Is this a bug in the docs or the code?
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>I would guess its a problem in the code, which bit of code in particular?
>>>>so
>>>>I can fix it.
>>>>
>>>>        
>>>>
>>>SQLSetStmtAttr.c:753
>>>
>>>2.2.15pre
>>>
>>>Thanks,
>>>George
>>>
>>>      
>>>
>>Ok, try the 2.2.15pre now.
>>    
>>
>
>diff -r unixODBC-2.2.15pre.old/DriverManager/SQLSetStmtAttr.c
>unixODBC-2.2.15pre.new/DriverManager/SQLSetStmtAttr.c
>756c756
><         statement -> row_ct_ptr = (SQLUINTEGER*) value;
>---
>  
>
>>        statement -> row_ct_ptr = (SQLULEN*) value;
>>    
>>
>
>
>All looks good, except I think you may have missed this one!   I will
>give it a test drive here in a bit.
>
>Thanks
>George.
>_______________________________________________
>unixODBC-dev mailing list
>unixODBC-dev at mailman.unixodbc.org
>http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev
>
>
>  
>
Ok, that bits done now.

-- 
Nick

-- 
Nick Gorham
Easysoft Limited
http://www.easysoft.com, http://www.unixODBC.org



More information about the unixODBC-dev mailing list