psycopg2/lib
James Henstridge f64cbeda46 * tests/test_transaction.py (DeadlockSerializationTestCase): port
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.
2008-01-16 05:14:24 +00:00
..
__init__.py * Docstrings added/fixed 2006-01-12 18:36:57 +00:00
errorcodes.py Fixed lib/errorcodes.py. 2006-09-23 05:36:18 +00:00
extensions.py * tests/test_transaction.py (DeadlockSerializationTestCase): port 2008-01-16 05:14:24 +00:00
extras.py Added name parameters to .cursor() calls in extras. 2007-09-01 09:32:42 +00:00
pool.py Logging patch from Charlie. 2006-09-01 07:12:23 +00:00
psycopg1.py Fixed CLRF mix - trying with native eol 2005-11-24 04:22:35 +00:00
tz.py * psycopg/psycopgmodule.c: fixed exceptions refcount. 2005-11-26 07:47:48 +00:00