Skip to content

Login to Tibero7 fails with pyodbc 5.x, works with 4.x #1371

Answered by ybjeon01
ybjeon01 asked this question in Q&A
Discussion options

You must be logged in to vote

I did three tests and read the trace files:

  1. Using pyodbc 4.0.39 with encoding setting (success case)
  2. Using pyodbc 5.1 without encoding environment variables set for the Tibero ODBC shared library (fail case)
  3. Using pyodbc 5.1 with encoding environment variables set for the Tibero ODBC shared library (success case. today, I found a way to use pyodbc 5.1 :D)

The trace files showed that pyodbc 4.0.39 attempts to use SQLConnectW() and, if that fails, it falls back to using SQLConnect(). On the other hand, pyodbc 5.1 only attempts to use SQLConnectW().

here are trace files.

  1. Using pyodbc 4.0.39 with encoding setting (success case)
    unixodbctrace-4-with-encoding-setting.log

  2. Using pyodbc 5.1…

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
6 replies
@gordthompson
Comment options

@ybjeon01
Comment options

@gordthompson
Comment options

@ybjeon01
Comment options

Answer selected by gordthompson
Comment options

You must be logged in to vote
1 reply
@ybjeon01
Comment options

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