Git Product home page Git Product logo

Comments (3)

lmagomes avatar lmagomes commented on July 17, 2024

I have the same problem, but querying sybase ASE. This is also on python 3.4 but running on debian 8. I have installed the latest version of pyodbc (3.0.9) with pip.

both tsql and isql can connect with no issues to the database, and do normal select statements, but pyodbc and sqlalchemy give me the same error as above. I also tried playing around with the configurations for client encoding with no success.

This seems to be related to issue #40. I tried installing 3.0.8 with pip, which had the same problem. Since 3.0.7 doesn't seem to be available on pypi anymore I downloaded it from google code (direct link to the file), and installed it from there. 3.0.7 seems to work with no correctly, both on pyodbc and using sqlalchemy.

from pyodbc.

mkleehammer avatar mkleehammer commented on July 17, 2024

If you are using unixODBC this should be fixed by b126ffb on the master branch.

If you are not using unixODBC and your driver requires a SQLWCHAR size other than 2-bytes let me know. I'm going to need to make this configurable but since it works for unixODBC and Windows I'll start there.

I'll release this as 3.1.0 when I've fixed a couple of other bugs.

from pyodbc.

mpwoodward avatar mpwoodward commented on July 17, 2024

Thanks!

from pyodbc.

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.