summaryrefslogtreecommitdiff
path: root/psycopg/microprotocols.c
Commit message (Collapse)AuthorAgeFilesLines
* Give precedence to '__conform__()' over superclasses choosing adapterDaniele Varrazzo2017-02-051-10/+10
| | | | Close #456
* Don't look up for Python encodingDaniele Varrazzo2016-12-291-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 pyencDaniele Varrazzo2016-12-261-3/+3
|
* Store a PGresult in the Exception errorDaniele Varrazzo2013-03-191-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 adaptationDaniele Varrazzo2012-03-041-7/+10
|
* Check errors in module typecasters initDaniele Varrazzo2012-02-231-7/+13
|
* Merge branch 'python2' into python3Daniele Varrazzo2011-01-011-5/+0
|\ | | | | | | | | | | | | | | | | Conflicts: ChangeLog NEWS-2.3 lib/extensions.py psycopg/microprotocols.c setup.py
| * Dropped conversion from None to NULL in adapter.Daniele Varrazzo2010-12-311-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 Varrazzo2010-12-311-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 Varrazzo2010-12-311-1/+14
| |
* | The library can be compiled with Python 3.Daniele Varrazzo2010-12-211-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 Varrazzo2010-12-211-2/+0
| | | | | | | | stringobject is not to be imported with Python 3.
* | Using Py_TYPE and Py_REFCNT macros.Daniele Varrazzo2010-12-211-4/+6
| |
* | Internal imports simplified.Daniele Varrazzo2010-12-121-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 Varrazzo2010-11-091-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 Varrazzo2010-11-091-9/+29
| | | | Also more explicit handling of the exception indicator.
* Less lookups and more efficient calls in microprotocols_getquoted().Daniele Varrazzo2010-11-091-20/+31
|
* Use the adapter of an object superclass if available.Daniele Varrazzo2010-11-081-4/+59
|
* Use faster function to build tuples in adaptation.Daniele Varrazzo2010-11-081-4/+7
| | | | Fixed a refcount bug too.
* Changes license to LGPL3 + OpenSSL exception on all source filesFederico Di Gregorio2010-02-121-12/+16
|
* Now adapt() errors include the type nameFederico Di Gregorio2009-11-251-1/+3
|
* Fixed error when adapt()ing NoneFederico Di Gregorio2009-03-091-0/+5
|
* Fixed both Python 2.5 and 64 bit problems.Federico Di Gregorio2007-04-101-6/+7
|
* Extra attributes for ProgrammingError exception.Federico Di Gregorio2006-01-051-1/+1
|
* Fixed wrong refcnt on None.Federico Di Gregorio2005-05-151-0/+2
|
* Array support completed (closes: #1).Federico Di Gregorio2005-04-101-0/+37
|
* Adaptation fixes (a lot.)Federico Di Gregorio2005-02-281-5/+6
|
* Initial psycopg 2 import after SVN crash.Federico Di Gregorio2004-10-191-0/+121