psycopg2/psycopg
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
..
adapter_asis.c * psycopg/typecast_array.c (typecast_array_scan): set an initial 2008-01-13 16:05:59 +00:00
adapter_asis.h Fixed both Python 2.5 and 64 bit problems. 2007-04-10 06:36:18 +00:00
adapter_binary.c * psycopg/typecast_array.c (typecast_array_scan): set an initial 2008-01-13 16:05:59 +00:00
adapter_binary.h Fixed both Python 2.5 and 64 bit problems. 2007-04-10 06:36:18 +00:00
adapter_datetime.c * psycopg/typecast_array.c (typecast_array_scan): set an initial 2008-01-13 16:05:59 +00:00
adapter_datetime.h Fixed both Python 2.5 and 64 bit problems. 2007-04-10 06:36:18 +00:00
adapter_list.c * psycopg/typecast_array.c (typecast_array_scan): set an initial 2008-01-13 16:05:59 +00:00
adapter_list.h Fixed both Python 2.5 and 64 bit problems. 2007-04-10 06:36:18 +00:00
adapter_mxdatetime.c * tests/__init__.py (test_suite): add date tests to test suite. 2008-01-16 01:43:50 +00:00
adapter_mxdatetime.h Fixed both Python 2.5 and 64 bit problems. 2007-04-10 06:36:18 +00:00
adapter_pboolean.c * psycopg/typecast_array.c (typecast_array_scan): set an initial 2008-01-13 16:05:59 +00:00
adapter_pboolean.h Fixed both Python 2.5 and 64 bit problems. 2007-04-10 06:36:18 +00:00
adapter_qstring.c * psycopg/typecast_array.c (typecast_array_scan): set an initial 2008-01-13 16:05:59 +00:00
adapter_qstring.h Fixed both Python 2.5 and 64 bit problems. 2007-04-10 06:36:18 +00:00
config.h 2007-12-22 James Henstridge <james@jamesh.id.au> 2007-12-22 13:03:41 +00:00
connection_int.c * psycopg/typecast_array.c (typecast_array_scan): set an initial 2008-01-13 16:05:59 +00:00
connection_type.c * tests/test_transaction.py (DeadlockSerializationTestCase): port 2008-01-16 05:14:24 +00:00
connection.h * tests/test_transaction.py (DeadlockSerializationTestCase): port 2008-01-16 05:14:24 +00:00
cursor_int.c Fixed both Python 2.5 and 64 bit problems. 2007-04-10 06:36:18 +00:00
cursor_type.c * psycopg/typecast_array.c (typecast_array_scan): set an initial 2008-01-13 16:05:59 +00:00
cursor.h Various fixes, now all examples work. 2007-04-13 14:07:11 +00:00
microprotocols_proto.c Fixed both Python 2.5 and 64 bit problems. 2007-04-10 06:36:18 +00:00
microprotocols_proto.h Fixed both Python 2.5 and 64 bit problems. 2007-04-10 06:36:18 +00:00
microprotocols.c Fixed both Python 2.5 and 64 bit problems. 2007-04-10 06:36:18 +00:00
microprotocols.h Fixed both Python 2.5 and 64 bit problems. 2007-04-10 06:36:18 +00:00
pgtypes.h Added aync.txt to distribution. 2005-11-29 12:01:46 +00:00
pgversion.h Initial psycopg 2 import after SVN crash. 2004-10-19 03:17:12 +00:00
pqpath.c * tests/test_transaction.py (DeadlockSerializationTestCase): port 2008-01-16 05:14:24 +00:00
pqpath.h * psycopg/connection_int.c (conn_close): fix for new 2008-01-10 18:14:44 +00:00
psycopg.h * tests/test_transaction.py (DeadlockSerializationTestCase): port 2008-01-16 05:14:24 +00:00
psycopgmodule.c * tests/test_transaction.py (DeadlockSerializationTestCase): port 2008-01-16 05:14:24 +00:00
python.h Fixed both Python 2.5 and 64 bit problems. 2007-04-10 06:36:18 +00:00
typecast_array.c * psycopg/typecast_array.c (typecast_array_scan): set an initial 2008-01-13 16:05:59 +00:00
typecast_basic.c Fixed bug #192 (Decimal support not safe for use with multiple sub 2007-10-21 03:22:55 +00:00
typecast_basic.c.old Initial psycopg 2 import after SVN crash. 2004-10-19 03:17:12 +00:00
typecast_binary.c typecast_binary.c cleanup. 2007-04-13 01:17:54 +00:00
typecast_binary.h Fixed both Python 2.5 and 64 bit problems. 2007-04-10 06:36:18 +00:00
typecast_builtins.c Fixed very stupid typo that resulted in a very big bug (reported by Andrea Arcangeli.) 2005-12-06 05:38:39 +00:00
typecast_datetime.c int->size_t transition. 2007-04-13 01:16:22 +00:00
typecast_mxdatetime.c int->size_t transition. 2007-04-13 01:16:22 +00:00
typecast.c * tests/__init__.py (test_suite): add date tests to test suite. 2008-01-16 01:43:50 +00:00
typecast.h int->size_t transition. 2007-04-13 01:16:22 +00:00