methew / pyodbc

Automatically exported from code.google.com/p/pyodbc
MIT No Attribution
0 stars 0 forks source link

patch to support Python 2.4 #293

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by leo.berg...@gmail.com on 24 Oct 2012 at 3:02

Attachments: