Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Give precedence to '__conform__()' over superclasses choosing adapter | Daniele Varrazzo | 2017-02-05 | 1 | -10/+10 |
| | | | | Close #456 | ||||
* | Don't look up for Python encoding | Daniele Varrazzo | 2016-12-29 | 1 | -3/+1 |
| | | | | | | Store the encode/decode functions for the right codec in the connection. The Python encoding name has been dropped of the connection to avoid the temptation to use it... | ||||
* | conn->codec rename to pyenc | Daniele Varrazzo | 2016-12-26 | 1 | -3/+3 |
| | |||||
* | Store a PGresult in the Exception error | Daniele Varrazzo | 2013-03-19 | 1 | -1/+1 |
| | | | | | This makes the Diagnostics independent from further operations on the cursor and allows using it with exceptions not generated by a cursor. | ||||
* | Guard from failed keys creation during adaptation | Daniele Varrazzo | 2012-03-04 | 1 | -7/+10 |
| | |||||
* | Check errors in module typecasters init | Daniele Varrazzo | 2012-02-23 | 1 | -7/+13 |
| | |||||
* | Merge branch 'python2' into python3 | Daniele Varrazzo | 2011-01-01 | 1 | -5/+0 |
|\ | | | | | | | | | | | | | | | | | Conflicts: ChangeLog NEWS-2.3 lib/extensions.py psycopg/microprotocols.c setup.py | ||||
| * | Dropped conversion from None to NULL in adapter. | Daniele Varrazzo | 2010-12-31 | 1 | -5/+0 |
| | | | | | | | | | | | | It was an error as the string is not conform to the protocol. The error is masked by the None fast path in _mogrify, but surfaces when adapting a tuple contains a None. | ||||
* | | Fixed adaptation in several adapters. | Daniele Varrazzo | 2010-12-31 | 1 | -1/+1 |
| | | | | | | | | | | The getquoted methods always return bytes. The str() convert this representation to string on the fly. | ||||
* | | Redefining the microprotocol on Py3 as returning bytes. | Daniele Varrazzo | 2010-12-31 | 1 | -1/+14 |
| | | |||||
* | | The library can be compiled with Python 3. | Daniele Varrazzo | 2010-12-21 | 1 | -2/+6 |
| | | | | | | | | | | | | | | | | | | 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 Varrazzo | 2010-12-21 | 1 | -2/+0 |
| | | | | | | | | stringobject is not to be imported with Python 3. | ||||
* | | Using Py_TYPE and Py_REFCNT macros. | Daniele Varrazzo | 2010-12-21 | 1 | -4/+6 |
| | | |||||
* | | Internal imports simplified. | Daniele Varrazzo | 2010-12-12 | 1 | -8/+5 |
|/ | | | | | | | | | | .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. | ||||
* | Check the presence of a mro. | Daniele Varrazzo | 2010-11-09 | 1 | -1/+1 |
| | | | | | The mere presence of the Py_TPFLAGS_HAVE_CLASS doesn't ensure it is there. | ||||
* | Less lookups and more efficient calls in microprotocols_adapt(). | Daniele Varrazzo | 2010-11-09 | 1 | -9/+29 |
| | | | | Also more explicit handling of the exception indicator. | ||||
* | Less lookups and more efficient calls in microprotocols_getquoted(). | Daniele Varrazzo | 2010-11-09 | 1 | -20/+31 |
| | |||||
* | Use the adapter of an object superclass if available. | Daniele Varrazzo | 2010-11-08 | 1 | -4/+59 |
| | |||||
* | Use faster function to build tuples in adaptation. | Daniele Varrazzo | 2010-11-08 | 1 | -4/+7 |
| | | | | Fixed a refcount bug too. | ||||
* | Changes license to LGPL3 + OpenSSL exception on all source files | Federico Di Gregorio | 2010-02-12 | 1 | -12/+16 |
| | |||||
* | Now adapt() errors include the type name | Federico Di Gregorio | 2009-11-25 | 1 | -1/+3 |
| | |||||
* | Fixed error when adapt()ing None | Federico Di Gregorio | 2009-03-09 | 1 | -0/+5 |
| | |||||
* | Fixed both Python 2.5 and 64 bit problems. | Federico Di Gregorio | 2007-04-10 | 1 | -6/+7 |
| | |||||
* | Extra attributes for ProgrammingError exception. | Federico Di Gregorio | 2006-01-05 | 1 | -1/+1 |
| | |||||
* | Fixed wrong refcnt on None. | Federico Di Gregorio | 2005-05-15 | 1 | -0/+2 |
| | |||||
* | Array support completed (closes: #1). | Federico Di Gregorio | 2005-04-10 | 1 | -0/+37 |
| | |||||
* | Adaptation fixes (a lot.) | Federico Di Gregorio | 2005-02-28 | 1 | -5/+6 |
| | |||||
* | Initial psycopg 2 import after SVN crash. | Federico Di Gregorio | 2004-10-19 | 1 | -0/+121 |