Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | NOTIFYs fix and poll status changes | Federico Di Gregorio | 2010-04-05 | 1 | -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 building | Federico Di Gregorio | 2010-04-05 | 1 | -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 Varrazzo | 2010-02-14 | 1 | -1/+1 | |
| | ||||||
* | Binary was not imported from _psycopg; now it is | Federico Di Gregorio | 2010-02-13 | 1 | -1/+1 | |
| | ||||||
* | SQL_IN adapter is now automatically registered | Federico Di Gregorio | 2010-02-13 | 1 | -2/+0 | |
| | ||||||
* | Changes license to LGPL3 + OpenSSL exception on all source files | Federico Di Gregorio | 2010-02-12 | 1 | -9/+17 | |
| | ||||||
* | Added adapter to handle float('inf') and float('nan') | Federico Di Gregorio | 2009-01-23 | 1 | -1/+1 | |
| | ||||||
* | Added XXXARRAY imports to psycopg2.extenions | Federico Di Gregorio | 2008-05-30 | 1 | -0/+4 | |
| | ||||||
* | Merge changes from psycopg2/trunk via psycopg2.r243. | James Henstridge | 2008-05-05 | 1 | -1/+2 | |
|\ | ||||||
| * | Added some file-like attributes to lobject. | Federico Di Gregorio | 2006-09-02 | 1 | -1/+2 | |
| | | ||||||
| * | Large objects landing.. | Federico Di Gregorio | 2006-09-02 | 1 | -8/+0 | |
| | | ||||||
| * | Work on large objects continue. | Federico Di Gregorio | 2006-09-01 | 1 | -0/+8 | |
| | | ||||||
| * | Merge from 2_0_x branch up to r814. | Federico Di Gregorio | 2006-09-01 | 1 | -2/+12 | |
| | | ||||||
* | | * tests/test_transaction.py (DeadlockSerializationTestCase): port | James Henstridge | 2008-01-16 | 1 | -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 Gregorio | 2007-04-25 | 1 | -2/+8 | |
| | | ||||||
* | | Moved SQL_IN to extensions and away from extras. | Federico Di Gregorio | 2007-01-16 | 1 | -0/+26 | |
| | | ||||||
* | | Exposed connection status. | Federico Di Gregorio | 2006-09-01 | 1 | -2/+12 | |
|/ | ||||||
* | * Docstrings added/fixed | Daniele Varrazzo | 2006-01-12 | 1 | -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 Varrazzo | 2006-01-05 | 1 | -1/+1 | |
| | | | * Some typo fixed. | |||||
* | * psycopg/psycopgmodule.c: fixed exceptions refcount. | Daniele Varrazzo | 2005-11-26 | 1 | -4/+6 | |
| | | | | * fixed lots of doctrings and added Epydoc-generated docs support. | |||||
* | In extensions.py: COMMITED -> COMMITTED. (Closes: #73) | Federico Di Gregorio | 2005-11-19 | 1 | -3/+3 | |
| | ||||||
* | Epydoc clean. :D | Federico Di Gregorio | 2005-10-18 | 1 | -4/+4 | |
| | ||||||
* | Better docstrings for lib/ modules. | Federico Di Gregorio | 2005-10-18 | 1 | -4/+3 | |
| | ||||||
* | Fixed typo in psycopg2.extensions. | Federico Di Gregorio | 2005-10-08 | 1 | -1/+1 | |
| | ||||||
* | Isolation level changes. | Federico Di Gregorio | 2005-10-08 | 1 | -0/+9 | |
| | ||||||
* | Array tokenization seems working. | Federico Di Gregorio | 2005-03-23 | 1 | -1/+1 | |
| | ||||||
* | License changes. Fixes. Added register_adapter(). | Federico Di Gregorio | 2005-01-20 | 1 | -0/+16 | |
| | ||||||
* | Initial psycopg 2 import after SVN crash. | Federico Di Gregorio | 2004-10-19 | 1 | -0/+31 | |