Re: Problem in SQLRowCount

Nick Gorham <[email protected]>
Newsgroups gmane.comp.db.unixodbc.devel
Message-ID <[email protected]>
Nimish Bhargava wrote:

>Hi
>
>I am using the odbc library on CentOS 5.2 x86_64.
>I am facing a problem in SQLRowCount(SQLHSTMT , SQLLEN*) function in
>DriverManager/SQLRowCount.c.
>
>I have build the odbc library and my code with BUILD_LEGACY_64_BIT_MODE flag
>defined. Hence SQLLEN become "int" according to the definition in
>sqltypes.h.
>
>The problem occurs after the execution of macro DEF_SQLROWCOUNT (line 227).
>Instead of writing on 4 bytes (int) on rowcount it writes 8 bytes thus
>corrupting 4 bytes of the stack.
>
>Could you please look in this function or let me know if I have made some
>mistake with the odbc compilation.
>
>Thanks and Regards
>Nimish
>
>  
>
That macro just calls the function in the current driver, so I guess you 
have a driver built with sizeof( SQLLEN ) == 8

-- 
Nick
_______________________________________________
unixODBC-dev mailing list
[email protected]
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.