You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using unicode query string, query doesn't execute.
import pyodbc
con = pyodbc.connect('DSN=Northwind; UID=vte; PWD=vte')
res = con.cursor().execute(u"select * from Customers where CustomerID = 'ĄŁÓ$!'").fetchall()
print len(res)
#output: 0, should be 1
When encoding query string utf-8 the result is the same - 0
My configuration on Ubuntu 10.04
FreeTDS 0.91 freetds.conf
[global]
# TDS protocol version
tds version = 8.0
client charset = UTF-8
text size = 64512
[mssql]
host = hostname.somedomain
port = 1433
tds version = 8.0
When using unicode query string, query doesn't execute.
When encoding query string utf-8 the result is the same - 0
My configuration on Ubuntu 10.04
FreeTDS 0.91 freetds.conf
unixODBC 2.3.0 odbcinst.ini
obdc.ini
pyodbc-3.0.2_beta01-py2.6
Select works fine when using
isql
or tsql
The text was updated successfully, but these errors were encountered: