summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Added new_array_type() functionDaniele Varrazzo2011-09-221-1/+1
| | | | Allows the creation of a generic array typecaster from Python.
* Don't leak private variables into the psycopg2.extensions interfaceDaniele Varrazzo2011-09-221-0/+1
|
* Fixed interaction between RealDictCursor and named cursorsDaniele Varrazzo2011-09-121-0/+4
| | | | Closes ticket #67.
* errorcodes map updated to PostgreSQL 9.1Daniele Varrazzo2011-08-221-0/+33
|
* Fixed NamedTupleCursor.executemany() (ticket #65)Daniele Varrazzo2011-08-091-1/+1
|
* Check the connection status before putting back into the poolDaniele Varrazzo2011-08-091-1/+16
| | | | | | Rollback connections in transaction or in error. Discard broken connections. Closes ticket #62.
* Raise PoolError when putting a connection not belonging to the poolDaniele Varrazzo2011-08-091-1/+1
| | | | A KeyError was raised instead.
* lazy import for uuid moduleMarko Kreen2011-06-281-52/+43
| | | | | | | | | | | | | Attached patch moves uuid import from inside try-except to register_uuid function. Reason: uuid module import is *very* heavy. It goes into OS searching for various .dll/.so libraries, lauches 'ldconfig' and so on... With this patch, 200x python -c 'import psycopg2.extras' goes from 22s to 7s. (plain 'import psycopg2' is 6s) -- marko
* Fixed version checkDaniele Varrazzo2011-06-041-6/+2
|
* Merge branch 'neg-escape' into develDaniele Varrazzo2011-05-301-1/+1
|\
| * Fixed escape for negative numbers prefixed by minus operatorDaniele Varrazzo2011-05-301-1/+1
| | | | | | | | Closes ticket #57.
* | Use all the isolation levels accepted by PostgreSQLDaniele Varrazzo2011-05-111-7/+5
|/ | | | In PG 9.1 repeatable read and serializable are distinct levels.
* Don't fetch all the records iterating a NamedTuple cursor on a named cursorDaniele Varrazzo2011-04-261-1/+8
|
* Fixed interaction between NamedTuple and named cursorDaniele Varrazzo2011-04-261-2/+2
| | | | | Build the nametuple after fetching the first resutl, or else cursor.description will be empty.
* Dropped unused importDaniele Varrazzo2011-04-261-1/+0
|
* Fixed use of the new return value of HstoreAdapter.get_oids()Daniele Varrazzo2011-02-251-3/+1
|
* Don't limit the hstore search to the public schema onlyDaniele Varrazzo2011-02-251-7/+16
| | | | | | Looks like there is a case for installing hstore somewhere else (see ticket #45). And after all the typecaster can be registered on a list of OIDs, so let's grab them all.
* Added oid parameter to register_hstore()Daniele Varrazzo2011-02-211-18/+32
| | | | | | | The parameter is mostly useful with async connections that would need a different protocol to be queried. Issue reported by Jan "the Asynchronous".
* Documentation cleanupDaniele Varrazzo2011-02-191-15/+12
| | | | | Added several links to the Python documentation using the 'intersphinx' extension.
* Import _psycopg as the first module in the packageDaniele Varrazzo2011-02-171-1/+6
| | | | | | Failing to do so, the real cause of the _psycopg import failed may get hidden and people may get a misleading error such as "cannot import name tz" instead.
* Fixed mapping for composite types defined in a schemaDaniele Varrazzo2011-02-091-3/+10
|
* Fields order enforced in composite types adapterDaniele Varrazzo2011-02-091-1/+2
|
* Only use absolute imports in the packageDaniele Varrazzo2011-01-082-31/+31
| | | | | In Python 3.2b2 the relative imports are not converted into explicit ones (with .).
* Merge branch 'python2' into python3Daniele Varrazzo2011-01-031-4/+6
|\ | | | | | | | | | | | | | | Conflicts: NEWS-2.3 psycopg/connection_type.c tests/test_connection.py tests/types_basic.py
| * Fixed TYPE adaptation to basic tuplesDaniele Varrazzo2011-01-031-4/+6
| | | | | | | | Tuples and namedtuples have different constructors.
* | Merge branch 'python2' into python3Daniele Varrazzo2011-01-021-0/+142
|\ \ | |/ | | | | | | | | Conflicts: NEWS-2.3 setup.py
| * Added PostgreSQL composite types typecaster to Python tuples.Daniele Varrazzo2011-01-021-0/+142
| |
* | None/IN adaptation ported to Python 3.Daniele Varrazzo2011-01-021-5/+6
| |
* | Merge branch 'python2' into python3Daniele Varrazzo2011-01-012-0/+15
|\ \ | |/ | | | | | | | | | | | | | | Conflicts: ChangeLog NEWS-2.3 lib/extensions.py psycopg/microprotocols.c setup.py
| * Fixed adaptation of None in composite types (ticket #26).Daniele Varrazzo2011-01-012-0/+14
| | | | | | | | | | | | | | Added an adapter for None: it is usually not invoked as adaptation to NULL is a fast path in mogrify, but can be invoked by composite types. Notice that composite types still have the option to fast-path None (e.g. list adapter does).
* | Inet adapter compatible with Python 3.Daniele Varrazzo2010-12-311-1/+1
| |
* | Hstore adapter compatible with Python 3.Daniele Varrazzo2010-12-311-25/+20
| |
* | Added b() function to return bytes in both Py2 and Py3.Daniele Varrazzo2010-12-311-0/+10
| |
* | Deal with slices passed to __*item__ in Python 3.Daniele Varrazzo2010-12-231-2/+2
| |
* | Fixed PG -> Py encodings mapping with non-alnum chars.Daniele Varrazzo2010-12-211-0/+8
| | | | | | | | | | | | We mangle the encoding names a little bit before asking it to the backend: be sure to be able to find the equivalent Python code back or decoding (unicode cast or Py3) will barf.
* | Some light cleanup for Py3 conversion.Daniele Varrazzo2010-12-212-13/+22
|/ | | | Either flagged as warning by python2.6 -3 or converted by 2to3.
* DictRow items can be updated. Patch by Alex Aster.Daniele Varrazzo2010-12-011-0/+5
|
* hstore registration doesn't fail if typarray column not available.Daniele Varrazzo2010-11-191-4/+6
|
* NamedTupleCursor doesn't change exception when fetching with no result.Daniele Varrazzo2010-11-111-1/+1
|
* Build the namedtuple only once per execution, not once per fetch.Daniele Varrazzo2010-11-111-3/+23
|
* Avoid pointless string manipulation in NamedTupleCursor.Daniele Varrazzo2010-11-091-2/+1
| | | | Closes ticket #10. Reported by Marko Kreen.
* Added NamedTupleCursor.Daniele Varrazzo2010-11-061-0/+55
|
* Hstore documentation improved.Daniele Varrazzo2010-11-051-13/+17
|
* Added some documentation for the hstore adaptation.Daniele Varrazzo2010-11-051-6/+6
|
* The hstore typecast can be registered globally.Daniele Varrazzo2010-11-051-27/+40
|
* Favour the PG9 implementation of the hstore adapter.Daniele Varrazzo2010-11-051-5/+5
|
* Hstore can return unicode keys and values.Daniele Varrazzo2010-11-051-5/+26
|
* Correctly parse escaped quotes from hstore.Daniele Varrazzo2010-11-051-9/+4
| | | | Parse regexp simplified.
* Added special cases to store empty dicts.Daniele Varrazzo2010-11-051-0/+6
|
* Added hstore typecaster registration.Daniele Varrazzo2010-11-051-0/+43
|