What steps will reproduce the problem?
1. Setup FreeTDS to *not* use DSN, i.e. require setting DRIVER value in
connection string to point to libtdsodbc.so
2. Specify 'driver' value in django's settings.py to local path, e.g.
'/usr/local/freetds/bin/libtdsodbc.so'
3. Run syncdb
What is the expected output? What do you see instead?
Expected output: Django syncs models with the targeted database, in this case
SQL Server.
Instead: I first get "Image not found" error from FreeTDS, generated from
base.py line 229.
What version of the product are you using? On what operating system?
FreeTDS = 0.8.2
pyodbc = 2.1.8
django-pyodbc = r191
OS X v1.6.7
Please provide any additional information below.
I've attached a patch file with the changes I made to fix the connection issue.
First the 'DRIVER' value is encased in '{}' for dsn-less connection which
FreeTDS chokes on (line 195 in base.py). Then I have to change the conditional
at line 197 so 'SERVER' and 'PORT' are used instead of 'SERVERNAME'. Previously
'SERVERNAME' is used regardless of driver is FreeTDS or path to lib.
Original issue reported on code.google.com by alex.y.h...@gmail.com on 20 Jun 2011 at 6:19
Original issue reported on code.google.com by
alex.y.h...@gmail.com
on 20 Jun 2011 at 6:19Attachments: