Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incorrect ccall signature for SQLInstallerError, SQLInstallDriverEx, SQLRemoveDriver #372

Open
xitology opened this issue Jun 1, 2023 · 0 comments

Comments

@xitology
Copy link
Contributor

xitology commented Jun 1, 2023

The signature of SQLInstallerError is defined as

(UInt16, Ref{UInt16}, Ptr{UInt8}, UInt16, Ref{UInt16})

while ODBC API Reference specifies it as

RETCODE SQLInstallerError(  
     WORD      iError,  
     DWORD *   pfErrorCode,  
     LPSTR     lpszErrorMsg,  
     WORD      cbErrorMsgMax,  
     WORD *    pcbErrorMsg);  

The second argument has the type DWORD *, which corresponds to Ref{UInt32} rather than Ref{UInt16}.

Similarly, Ref{UInt16} is incorrectly used for a DWORD * argument in SQLInstallDriverEx and SQLRemoveDriver.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant