summaryrefslogtreecommitdiff
path: root/psycopg/python.h
Commit message (Collapse)AuthorAgeFilesLines
* Moved datatime compatibility macros with othersDaniele Varrazzo2018-01-101-0/+5
|
* Add news and update version checkHugo2017-11-281-2/+4
|
* Drop support for EOL Python 2.6Hugo2017-11-281-10/+2
|
* Stop compiling with Python 2.5Daniele Varrazzo2016-08-151-2/+2
|
* Dropped support for Python 2.4Daniele Varrazzo2013-03-201-31/+2
|
* Added a C structure to psycopg.ErrorDaniele Varrazzo2013-03-191-0/+1
| | | | This will allow to store a PGresult in it.
* Added compatibility PyErr_WarnEx macro for Python 2.4Daniele Varrazzo2012-10-061-0/+5
|
* Merge branch 'transaction-control' into develDaniele Varrazzo2011-06-031-0/+1
|\
| * Dropped isolation level from the connection objectDaniele Varrazzo2011-06-031-0/+1
| | | | | | | | | | | | | | | | | | | | Don't issue a SET TRANSACTION ISOLATION LEVEL at every begin: use PG's GUC default, eventually set by set_transaction. Dropped the last query at connection, yay! Method set_isolation_level() and property isolation_level refactored using the new structures, keeping the previous semantic.
* | Fixed escape for negative numbers prefixed by minus operatorDaniele Varrazzo2011-05-301-0/+2
|/ | | | Closes ticket #57.
* Python 3.2 hash() return value is arch dependantJason Erickson2011-02-181-0/+9
| | | | | | | Python 3.2 hash() function will now return a 64bit value when run on a 64bit architecture, where as previously, it would always return a 32bit value. Modified the code to use the now Py_hash_t typedef and for Python versions less than 3.2, hard code Py_hash_t to long and Py_uhash_t to unsigned long.
* Fixed compiling on Python versions before 2.6Daniele Varrazzo2011-01-031-0/+5
| | | | Added a few macros not defined in Py 2.4. Don't know about 2.5.
* Added Py3 compatibility macro for Py_TPFLAGS_HAVE_WEAKREFSDaniele Varrazzo2011-01-031-0/+1
|
* Use the same Bytes_Format function for both Python 2 and 3.Daniele Varrazzo2010-12-311-7/+6
| | | | | | This makes the behaviour between the two versions similar. It also have the effect of a more specific error message in case an user specifies a placeholder different from 's'.
* Added utility function to get bytes from a str/unicode.Daniele Varrazzo2010-12-311-0/+2
|
* Datetime adaptation in bytes.Daniele Varrazzo2010-12-311-6/+0
|
* Added PyBytes_Format function.Daniele Varrazzo2010-12-311-0/+11
|
* The library can be compiled with Python 3.Daniele Varrazzo2010-12-211-0/+62
| | | | | | | | | Just compiled! No test run yet and many points to review, marked in the code. The patch is largely Martin von Löwis work, simplified after refactoring in the previous commits and adapted to the new code (as the patch was originally for Psycopg 2.0.9)
* Import structmember/stringobject headers from python.h.Daniele Varrazzo2010-12-211-0/+3
| | | | stringobject is not to be imported with Python 3.
* Added a few compatibility macros defined in Py 2.6.Daniele Varrazzo2010-12-211-2/+6
|
* Internal imports simplified.Daniele Varrazzo2010-12-121-2/+0
| | | | | | | | | | .c files only need to import psycopg.h: it will in turn import dependencies from Python and libpq and configure.h. psycopg.h should be the first to be imported, so the basic imports are not required in the .h's As a guideline I'm trying to import from the most specific to the most generic to detect missing imports in the .h's.
* Py_TYPE defined as it is in Python 2.6.Daniele Varrazzo2010-11-081-1/+1
|
* Added compatibility macro for pre 2.6Daniele Varrazzo2010-11-051-0/+4
|
* implement sequence behaviour, as required for transaction IDs.Daniele Varrazzo2010-11-051-0/+2
| | | | | | By James Henstridge on 2008-07-24. Merged from lp:~jamesh/psycopg/two-phase-commit/revision/357
* Fixed Python 2.4 compatibility breakageFederico Di Gregorio2010-04-091-0/+1
|
* Changes license to LGPL3 + OpenSSL exception on all source filesFederico Di Gregorio2010-02-121-12/+16
|
* Remove backward compatibility support for Python versions older than James Henstridge2008-12-261-30/+24
| | | | 2.4, since we don't really support them any way.
* * psycopg/connection_type.c:James Henstridge2008-05-281-0/+23
| | | | | | | * psycopg/cursor_type.c: add support for cyclic GC. * psycopg/python.h: add definitions for Py_CLEAR() and Py_VISIT() for compatibility with old versions of Python.
* Fixed both Python 2.5 and 64 bit problems.Federico Di Gregorio2007-04-101-1/+2
|
* Initial psycopg 2 import after SVN crash.Federico Di Gregorio2004-10-191-0/+43