[pywin32-bugs] [ pywin32-Bugs-955432 ] odbc module not portable
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2004-05-18 17:53:01
|
Bugs item #955432, was opened at 2004-05-17 20:01 Message generated for change (Comment added) made by willeke You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=955432&group_id=78018 Category: win32 Group: None Status: Open Resolution: None Priority: 5 Submitted By: Jon Willeke (willeke) Assigned to: Nobody/Anonymous (nobody) Summary: odbc module not portable Initial Comment: I'm interested in using the ODBC module with unixODBC and/or iODBC on Linux. I've gotten it to work, after a fashion, with Python 2.3.3 and unixODBC 2.2.8 on SuSE Linux 8.2. I'd like to know how receptive you would be to portability patches. One category of changes conditionally compiles the Windows-specific things: windows.h, __declspec, etc. Another category of changes removes the few C++ things in an otherwise C-compatible module: declarations, comments, map(), etc. This is mostly in odbc.cpp, but there are also a few changes to dbi.h and dbi.cpp. ---------------------------------------------------------------------- >Comment By: Jon Willeke (willeke) Date: 2004-05-18 17:53 Message: Logged In: YES user_id=185468 I've submitted patches #956091, #956093, and #956094. The first patch has an attachment that includes the latter two, because they don't apply cleanly together. The only essential change to dbi.h is CALLCONV. There's also a warning in the initialization of noMethods in dbi.c. I'm not submitting a patch at this time, because I'd like to experiment with a DBI-less ODBC module. I'm not sure how to test ODBC without a DBMS and a DSN, so I don't have any tests, right now. There has been some discussion on the unixODBC list about developing an ODBC test framework. ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2004-05-17 22:00 Message: Logged In: YES user_id=14198 I would be happy to support that - particularly if the changes came with a few tests - we don't have any at the moment, and that alone would be a big improvement. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=955432&group_id=78018 |