Loprz / pypyodbc

Automatically exported from code.google.com/p/pypyodbc
0 stars 0 forks source link

cygwin compatibility #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.import pypyodbc under cygwin

What is the expected output? What do you see instead?
OdbcNoLibrary exception raised since the sys.platform instpection around line 
#490 of pypyodbc.py doesn't include 'cygwin'.  However, the proper way to load 
the native odbc dll would then be something like:

ODBC_API = ctypes.cdll.LoadLibrary('/cygdrive/c/WINDOWS/system32/odbc32.dll')

So I'm not sure how that should best be implemented.

What version of the product are you using? On what operating system?
pypyodbc 0.8.7
cygwin 1.7.17-1 running on Windows XP 

Please provide any additional information below.

Original issue reported on code.google.com by tschm...@sacfoodcoop.com on 6 Nov 2012 at 6:59

GoogleCodeExporter commented 8 years ago

Original comment by jiangwen...@gmail.com on 26 Dec 2012 at 3:41

GoogleCodeExporter commented 8 years ago

Original comment by jiangwen...@gmail.com on 25 Feb 2013 at 2:30

GoogleCodeExporter commented 8 years ago

Original comment by jiangwen...@gmail.com on 1 Mar 2013 at 1:36