GithubHelp home page GithubHelp logo

iODBC Driver Manager support about odbc-rs HOT 6 CLOSED

iotaaxel avatar iotaaxel commented on August 27, 2024
iODBC Driver Manager support

from odbc-rs.

Comments (6)

Koka avatar Koka commented on August 27, 2024

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.

Koka avatar Koka commented on August 27, 2024

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.

iotaaxel avatar iotaaxel commented on August 27, 2024

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.

ccakes avatar ccakes commented on August 27, 2024

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.

iotaaxel avatar iotaaxel commented on August 27, 2024

I removed iODBC Driver Manager and now only have unixodbc. Thank you @ccakes

from odbc-rs.

Koka avatar Koka commented on August 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.