My favorites | Sign in
Project Home Downloads Wiki
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 293: patch to support Python 2.4
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by leo.berg...@gmail.com, Oct 24, 2012
What version of the product are you using? On what operating system?
3.0.6
RHEL 5

Please provide any additional information below.

pyodbc 3.0.6 won't compile with Python 2.4, even though the README states that it should.

The attached patch fixes the problem.

- PyNumber_AsSsize_t isn't defined on Python 2.4.
- docstrings should be static char* instead of static const char*
- uintptr_t, which is used for SQL_AUTOCOMMIT_ON / OFF and SQL_NOSCAN_ON / OFF
  needs stdint.h
  I have used SQLUINTEGER instead.

pyodbc-3.0.6-python24.patch
2.2 KB   View   Download

Powered by Google Project Hosting