Comments (6)
Actually, I've never tried this crate with iodbc, but should work too.
Can you please add more details on your environment?
Failing tests can be related not only to the crate itself, but also to environment, ODBC driver manager or driver and datasource setup.
The only native dependence of this crate is odbc driver manager. It should be already installed on Windows and for Linux and Mac you need to install it manually (like UnixODBC or iodbc)
from odbc-rs.
Also looks like you're calling get_diag_rec(2)
somewhere while having only one diagnostic record, I quickly looked at the sources of this crate and it always does get_diag_rec(1)
, so this should be called manually somewhere in your code. Thats the reason why you have 'Diagnostics returned error for record number 2. Record numbers have to be at least 1' error
from odbc-rs.
I am using rustc 1.28.0-nightly (e3bf634e0 2018-06-28) now on a Mac. I am also using Homebrew 1.6.9.
Thank you, I was able to get successful results by downloading the iODBC Driver Manager , running "brew install sqliteodbc", and set up dsn files.
Also, it appears your tests are hardcoded , so that may be why cargo test fails for me.
from odbc-rs.
Just an additional datapoint - on macOS 10.12 linking against libiodbc results in all tests failing, removed that and retried with unixodbc and all works fine.
I didn't try installing iODBC Driver Manager like OP did though.
from odbc-rs.
I removed iODBC Driver Manager and now only have unixodbc. Thank you @ccakes
from odbc-rs.
So looks like iODBC doesn't work well with this crate. I'm renaming this issue to iODBC Driver Manager support request
from odbc-rs.
Related Issues (20)
- No reexport for odbc_safe HOT 2
- parameter binding problem(Is this dangling pointer?) HOT 4
- Code in Readme: wrong number of type arguments: expected 1, found 0 HOT 4
- Send+Sync for connection HOT 4
- odbc v0.13.0 does not compile any more HOT 3
- How can I connect to MS DataBase HOT 8
- Panic when Reading table from DB2 Driver HOT 6
- Incorrect affected_row_count using UPDATE and SELECT clause from SQL Server
- Invalid handle panic due to connection dropped before statement HOT 1
- Is it possible to get SQL_INTERVAL_STRUCT from a cursor?
- access office access?
- Arrow output HOT 5
- Connection Pooling support HOT 10
- async/.await HOT 1
- New Beginner: top level return for values example. HOT 1
- FromBytesWithNulError { kind: InteriorNul(1) }
- Travis out of credits
- lib build failed HOT 2
- This repo is unsupported HOT 1
- Unsound implementation of `convert_primitive` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from odbc-rs.