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

Has anyone built odbc for x64? #115

Open
nick-nh opened this issue Aug 2, 2019 · 2 comments
Open

Has anyone built odbc for x64? #115

nick-nh opened this issue Aug 2, 2019 · 2 comments

Comments

@nick-nh
Copy link

nick-nh commented Aug 2, 2019

Hello.
I tried to make odbc driver for x64, but had LNK4272 x64-x86 problems (I did in x64 env).
Tried to convert vs6 project, but vs2015 cannot do this.

@nick-nh
Copy link
Author

nick-nh commented Aug 2, 2019

I have compiled driver. I had to change in ls_odbc.c define to _WIN64 and SQLINTEGER to SQLLEN.
Then it compiled wo warnings.

But when I tried to fetch cursor:
cur:fetch({}, "a")
got error without any message. Has anyone got similar in x64?

@nick-nh
Copy link
Author

nick-nh commented Aug 2, 2019

But it works if write iterator:
function SQL_Rows(connection, sql_statement)
local cursor = assert(connection:execute (sql_statement))
return function ()
return cursor:fetch()
end
end

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

No branches or pull requests

1 participant