summaryrefslogtreecommitdiff
path: root/psycopg/adapter_pboolean.c
Commit message (Collapse)AuthorAgeFilesLines
* Dropped PSYCOPG_NEW_BOOLEAN flagDaniele Varrazzo2014-08-241-9/+0
| | | | | | | Introduced in 2.0 beta 8, 2006 A.D. Went absolutely untouched in 8 years of refactoring, when Python 2.5 and PostgreSQL 8.1 roamed the earth. I would say it has stood the test of the time.
* Dropped simple type wrapper functionsDaniele Varrazzo2014-08-151-14/+0
| | | | | These functions don't need to exist: exposing the type in the module is enough. It is actually better as one may use isinstance and such.
* Dropped almost-no-op customized objects repr()Daniele Varrazzo2014-08-151-8/+1
| | | | | | | | The default repr is enough: it prints <TypeName at 0xADDR> instead of <TypeName object at 0xADDR>. The only people being hurt by this change are the ones using doctests: they deserve it.
* Name the types after the module they are exposed fromDaniele Varrazzo2014-08-151-2/+2
|
* Dropped GC support for several objectsDaniele Varrazzo2013-04-051-11/+2
| | | | | | Non-containers don't need GC. It was half-baked anyway as the tp_clear was often not set. Dropped tp_traverse too for these objects as unused.
* PyType_GenericAlloc is the default allocator: no need to specifyDaniele Varrazzo2013-03-201-1/+1
|
* Dropped "customized" pg_free functionsDaniele Varrazzo2013-03-201-29/+1
| | | | The defaut is already to call PyObject_GC_Del.
* Fixed adaptation in several adapters.Daniele Varrazzo2010-12-311-7/+7
| | | | | The getquoted methods always return bytes. The str() convert this representation to string on the fly.
* The library can be compiled with Python 3.Daniele Varrazzo2010-12-211-4/+4
| | | | | | | | | 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 PyVarObject_HEAD_INIT macro.Daniele Varrazzo2010-12-211-2/+1
|
* Using Py_TYPE and Py_REFCNT macros.Daniele Varrazzo2010-12-211-4/+4
|
* Changed Python const RO -> READONLY.Daniele Varrazzo2010-12-121-1/+1
|
* 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.
* Dropped PyArg_ParseTuple() calls in functions taking no arguments.Daniele Varrazzo2010-11-091-2/+1
|
* Replaced PyObject_CallFunction() with *ObjArgs() where more efficient.Daniele Varrazzo2010-11-091-1/+1
|
* Changes license to LGPL3 + OpenSSL exception on all source filesFederico Di Gregorio2010-02-121-12/+16
|
* Use Py_CLEAR() in a few more places, and do INCREF's before setting James Henstridge2008-07-211-2/+2
| | | | struct members rather than afterwards.
* * psycopg/adapter_qstring.c (qstring_traverse): add cyclic GCJames Henstridge2008-07-181-3/+12
| | | | | | | | | | | | | traversal for quoted string adapters. * psycopg/adapter_pboolean.c (pboolean_traverse): add cyclic GC traversal for boolean adapters. * psycopg/adapter_mxdatetime.c (mxdatetime_traverse): add cyclic GC traversal for mxdatetime adapters. * psycopg/adapter_datetime.c (pydatetime_traverse): add cyclic GC traversal for datetime adapters.
* * psycopg/typecast_array.c (typecast_array_scan): set an initialJames Henstridge2008-01-131-2/+2
| | | | | | value for quotes to keep gcc happy. * psycopg/*.c: add missing static modifier on many functions.
* Fixed both Python 2.5 and 64 bit problems.Federico Di Gregorio2007-04-101-20/+27
|
* Boolean fix for arrays.Federico Di Gregorio2006-04-241-0/+9
|
* Code cleanup.Federico Di Gregorio2005-10-181-3/+4
|
* mingw patch from Daniele Varazzo.Federico Di Gregorio2005-04-101-1/+1
|
* Added __conform__ to all adapters (typos excluded.)Federico Di Gregorio2005-03-031-1/+1
|
* Added __conform__ to all adapters.Federico Di Gregorio2005-03-031-7/+12
|
* Adaptation fixes (a lot.)Federico Di Gregorio2005-02-281-2/+2
|
* Renaming types.Federico Di Gregorio2004-12-131-1/+1
|
* Initial psycopg 2 import after SVN crash.Federico Di Gregorio2004-10-191-0/+223