summaryrefslogtreecommitdiff
path: root/lib/extensions.py
Commit message (Collapse)AuthorAgeFilesLines
...
* NOTIFYs fix and poll status changesFederico Di Gregorio2010-04-051-2/+2
| | | | | | POLL_OK has been changed from 3 to 0 to let the user specify a short loop just as "if not curs.poll()" instead of having to check for write and read separately. For an example of this, see examples/notify.py.
* Support asynchronous connection buildingFederico Di Gregorio2010-04-051-0/+5
| | | | | | | | | After calling psycopg2.connect(dsn, async=True) you can poll the connection that will tell you whether its file descriptor should be waited on to become writable or readable or that the connection attempt has succeeded. Edited commit by Jan to not expose internal state in extensions.py.
* Stop the loop variable used to create __all__ leaking in the module.Daniele Varrazzo2010-02-141-1/+1
|
* Binary was not imported from _psycopg; now it isFederico Di Gregorio2010-02-131-1/+1
|
* SQL_IN adapter is now automatically registeredFederico Di Gregorio2010-02-131-2/+0
|
* Changes license to LGPL3 + OpenSSL exception on all source filesFederico Di Gregorio2010-02-121-9/+17
|
* Added adapter to handle float('inf') and float('nan')Federico Di Gregorio2009-01-231-1/+1
|
* Added XXXARRAY imports to psycopg2.extenionsFederico Di Gregorio2008-05-301-0/+4
|
* Merge changes from psycopg2/trunk via psycopg2.r243.James Henstridge2008-05-051-1/+2
|\
| * Added some file-like attributes to lobject.Federico Di Gregorio2006-09-021-1/+2
| |
| * Large objects landing..Federico Di Gregorio2006-09-021-8/+0
| |
| * Work on large objects continue.Federico Di Gregorio2006-09-011-0/+8
| |
| * Merge from 2_0_x branch up to r814.Federico Di Gregorio2006-09-011-2/+12
| |
* | * tests/test_transaction.py (DeadlockSerializationTestCase): portJames Henstridge2008-01-161-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | over some tests for serialisation and deadlock errors, demonstrating that TransactionRollbackError is generated. (QueryCancelationTests): add a test to show that QueryCanceledError is raised on statement timeouts. * psycopg2da/adapter.py (_handle_psycopg_exception): rather than checking exception messages, check for TransactionRollbackError. * psycopg/pqpath.c (exception_from_sqlstate): return TransactionRollbackError for 40xxx errors, and QueryCanceledError for 57014 errors. (pq_raise): If we are using an old server, use TransactionRollbackError if the error message contains "could not serialize" or "deadlock detected". * psycopg/psycopgmodule.c (_psyco_connect_fill_exc): remove function, since we no longer need to store pointers to the exceptions in the connection. This also fixes a reference leak. (psyco_connect): remove _psyco_connect_fill_exc() function call. * psycopg/connection.h (connectionObject): remove exception members from struct. * psycopg/connection_type.c (connectionObject_getsets): modify the exception attributes on the connection object from members to getsets. This reduces the size of the struct. * lib/extensions.py: import the two new extensions. * psycopg/psycopgmodule.c (exctable): add new QueryCanceledError and TransactionRollbackError exceptions.
* | .get_transaction_status() implementation.Federico Di Gregorio2007-04-251-2/+8
| |
* | Moved SQL_IN to extensions and away from extras.Federico Di Gregorio2007-01-161-0/+26
| |
* | Exposed connection status.Federico Di Gregorio2006-09-011-2/+12
|/
* * Docstrings added/fixedDaniele Varrazzo2006-01-121-0/+2
| | | * Added __all__ attributes to Python modules to explicit the package API
* * libpq.dll not used anymore. win32 setup uses pg_config too.Daniele Varrazzo2006-01-051-1/+1
| | | * Some typo fixed.
* * psycopg/psycopgmodule.c: fixed exceptions refcount.Daniele Varrazzo2005-11-261-4/+6
| | | | * fixed lots of doctrings and added Epydoc-generated docs support.
* In extensions.py: COMMITED -> COMMITTED. (Closes: #73)Federico Di Gregorio2005-11-191-3/+3
|
* Epydoc clean. :DFederico Di Gregorio2005-10-181-4/+4
|
* Better docstrings for lib/ modules.Federico Di Gregorio2005-10-181-4/+3
|
* Fixed typo in psycopg2.extensions.Federico Di Gregorio2005-10-081-1/+1
|
* Isolation level changes.Federico Di Gregorio2005-10-081-0/+9
|
* Array tokenization seems working.Federico Di Gregorio2005-03-231-1/+1
|
* License changes. Fixes. Added register_adapter().Federico Di Gregorio2005-01-201-0/+16
|
* Initial psycopg 2 import after SVN crash.Federico Di Gregorio2004-10-191-0/+31