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
https://bugs.winehq.org/show_bug.cgi?id=39693
Blake McBride blake1024@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |blake1024@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=39693
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com --- Thanks, I'll take a look.
https://bugs.winehq.org/show_bug.cgi?id=39693
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Summary|SQLBindCol wrong |SQLBindCol prototype is |declaration |wrong Ever confirmed|0 |1
--- Comment #2 from Nikolay Sivov bunglehead@gmail.com --- Here's a fix for that - https://www.winehq.org/pipermail/wine-patches/2015-November/144943.html.
https://bugs.winehq.org/show_bug.cgi?id=39693
Vijay Kamuju infyquest@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |bd4cb88e6b1ad784747548145cf | |7c7931a20757d Status|NEW |RESOLVED CC| |infyquest@gmail.com Resolution|--- |FIXED
--- Comment #3 from Vijay Kamuju infyquest@gmail.com --- Fixed by commit bd4cb88e6b1ad784747548145cf7c7931a20757d
https://bugs.winehq.org/show_bug.cgi?id=39693
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.8-rc3.