SQLBindCol wrong declaration

Questions about Wine on Linux
Locked
blake1024
Level 1
Level 1
Posts: 5
Joined: Thu Nov 26, 2015 12:37 am

SQLBindCol wrong declaration

Post by blake1024 »

When I use SQLBindCol under 64 bit Wine, I get:

Code: Select all

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 *’
Microsoft docs state that that argument is SQLLEN *

Blake McBride
User avatar
dimesio
Moderator
Moderator
Posts: 13373
Joined: Tue Mar 25, 2008 10:30 pm

Re: SQLBindCol wrong declaration

Post by dimesio »

Wine version? If it's not the current release candidate, upgrade, and if the problem is still present, file a bug.
blake1024
Level 1
Level 1
Posts: 5
Joined: Thu Nov 26, 2015 12:37 am

Re: SQLBindCol wrong declaration

Post by blake1024 »

I am using Wine 1.6.2
User avatar
dimesio
Moderator
Moderator
Posts: 13373
Joined: Tue Mar 25, 2008 10:30 pm

Re: SQLBindCol wrong declaration

Post by dimesio »

Upgrade to 1.8-rc2.
Locked