https://bugs.winehq.org/show_bug.cgi?id=39693
Bug ID: 39693 Summary: SQLBindCol wrong declaration Product: Wine Version: 1.8-rc2 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: odbc Assignee: wine-bugs@winehq.org Reporter: blake1024@gmail.com Distribution: ---
When I use SQLBindCol under 64 bit Wine, I get:
Database.c: In function ‘pReadAllTables’: Database.c:574:3: warning: passing argument 6 of ‘SQLBindCol’ from incompatible pointer type [enabled by default] r = SQLBindCol(stmt, 2, SQL_C_CHAR, owner, (int)sizeof(owner) - 1, &pcbValueOwner); ^ In file included from Database.d:39:0: /usr/include/wine/windows/sql.h:507:20: note: expected ‘SQLINTEGER *’ but argument is of type ‘SQLLEN *’
It compiles without warnings under Windows 32 and 64 bit. Microsoft docs state that that argument is SQLLEN *
Blake McBride