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

Add ODBC driver #33

Closed
moteus opened this issue Feb 24, 2016 · 2 comments
Closed

Add ODBC driver #33

moteus opened this issue Feb 24, 2016 · 2 comments

Comments

@moteus
Copy link

moteus commented Feb 24, 2016

I write ODBC driver for DBI library based on my Lua-ODBC library.
I slitly change tests:

  1. I use select cast(? as <TYPE>) as retval to test type encodings.
  2. I found that ODBC drivers for MySQL/PgSQL does not get any error when call prepare with invalid SQL. So I also try call execute.
  3. I do not call test for returning id because MySQL does not support it.

For now I add DBI.lua to my repo because I want run tests on Travis. But I will not add this to luarocks.
I add it only after you change main luadbi module so it can load ODBC driver. So i can just add luadbi as deps to my module.

PS.
I also add some tests to fetch, close, tostring and execute same statement with different query multiple times

@sparked435
Copy link
Collaborator

DBI.lua now checks for driver 'ODBC' as dbdodbc as well.

@moteus
Copy link
Author

moteus commented Aug 24, 2017

Just tested my ODBC driver with v0.6.
All works. Add module to luarocks.

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

2 participants