Commit Graph

186 Commits

Author SHA1 Message Date
Daniele Varrazzo
4412826556 Added documentation for the 'pool' module. 2010-02-26 00:46:23 +00:00
Daniele Varrazzo
a320f25a2a Completed documentation for errorcodes module. 2010-02-16 00:38:44 +00:00
Daniele Varrazzo
96b7912bcf Typo fixed in DictRow doc. 2010-02-16 00:38:15 +00:00
Daniele Varrazzo
d08d9ab199 Added errorcodes.lookup() function. 2010-02-15 01:38:49 +00:00
Daniele Varrazzo
bcfdbd1903 Error codes updated to include all errors between PostgreSQL 8.1 and 8.4. 2010-02-15 01:07:28 +00:00
Daniele Varrazzo
be30f43181 Inet adapter fixed. 2010-02-14 20:14:17 +00:00
Federico Di Gregorio
4b58fc640e License change for lib/errorcodes.py
You hereby have my blessing to go ahead and license all my contributions to
the psycopg2 project, including lib/errorcodes.py to LGPL3(+).

-- Johan Dahlin
2010-02-14 01:19:17 +01:00
Daniele Varrazzo
3789f8fb17 Added other info about tz module. 2010-02-14 00:39:48 +01:00
Daniele Varrazzo
6a4ff65b49 Added documentation for the extras module. 2010-02-14 00:39:48 +01:00
Daniele Varrazzo
e1b3c7b940 Fixed Inet constructor. 2010-02-14 00:35:48 +01:00
Daniele Varrazzo
0dbe068df4 Stop the loop variable used to create __all__ leaking in the module. 2010-02-14 00:35:47 +01:00
Federico Di Gregorio
0089201ba2 Binary was not imported from _psycopg; now it is 2010-02-13 00:52:36 +01:00
Federico Di Gregorio
a9673f31d6 SQL_IN adapter is now automatically registered 2010-02-13 00:40:29 +01:00
Federico Di Gregorio
611606d532 Changes license to LGPL3 + OpenSSL exception on all source files 2010-02-12 23:34:53 +01:00
Federico Di Gregorio
e5bed4993b Fixed register_tstz_w_secs() error 2010-02-10 18:16:00 +01:00
Federico Di Gregorio
390a9c2451 Added support for UUID arrays 2009-10-04 12:34:02 +02:00
Federico Di Gregorio
e1fae0fcac Fixed bug in RealDictCursor when prefetching 2009-05-09 14:44:59 +02:00
Federico Di Gregorio
06eb574cec Applied DictRow "diet" patch 2009-05-09 10:19:15 +02:00
Federico Di Gregorio
bb77a6912f Added missing dict methods in DictRow 2009-04-19 16:25:12 +02:00
Federico Di Gregorio
825a60eec5 Removed spurious print 2009-03-16 22:15:20 +01:00
Federico Di Gregorio
1daf300ca3 Support for seconds in time zone offsets 2009-03-02 11:07:17 +01:00
Federico Di Gregorio
5b04203c9f Fixed error in register_type() 2009-03-02 10:59:52 +01:00
Federico Di Gregorio
9b259bba86 Removed some spurious tabs 2009-02-23 21:39:25 +01:00
Federico Di Gregorio
eb25f9f154 Added adapter to handle float('inf') and float('nan') 2009-01-23 00:09:20 +01:00
Federico Di Gregorio
4c8e80038e Added inet support 2008-09-24 01:27:52 +02:00
Federico Di Gregorio
56f6001d6d Support for NULLs in UUID 2008-09-23 09:11:11 +02:00
Federico Di Gregorio
b92601306e Added suppport for UUID and related test. 2008-09-19 21:25:16 +02:00
Federico Di Gregorio
e664abb248 Added XXXARRAY imports to psycopg2.extenions 2008-05-30 00:39:50 +02:00
James Henstridge
938c456cee Merge changes from psycopg2/trunk via psycopg2.r243. 2008-05-05 10:37:24 +08:00
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
Federico Di Gregorio
0422506404 Added name parameters to .cursor() calls in extras. 2007-09-01 09:32:42 +00:00
Federico Di Gregorio
a779c8ef99 .get_transaction_status() implementation. 2007-04-25 22:42:36 +00:00
Federico Di Gregorio
f43a52f781 Added RealDictCursor from #143. 2007-01-16 13:45:41 +00:00
Federico Di Gregorio
e59ef4de4b Moved SQL_IN to extensions and away from extras. 2007-01-16 10:58:05 +00:00
Federico Di Gregorio
bfe5b8fe6b Added iteritem method to DictRow. 2006-10-06 05:22:54 +00:00
Federico Di Gregorio
96f631d41e Merge from 2.0 branch up to r839. 2006-09-30 06:57:35 +00:00
Federico Di Gregorio
ca860424e6 Fixed lib/errorcodes.py. 2006-09-23 05:36:18 +00:00
Federico Di Gregorio
43518d067e Added lib/errorcodes.py. 2006-09-23 05:35:03 +00:00
Federico Di Gregorio
52666ef5bd Fixed syntax error in lib/extras.py. 2006-09-10 14:51:43 +00:00
Federico Di Gregorio
31189ef0df Fixed syntax error in extras module (closes: #123). 2006-09-10 14:50:03 +00:00
Federico Di Gregorio
269156d9bf Added some file-like attributes to lobject. 2006-09-02 05:33:03 +00:00
Federico Di Gregorio
64bd7ae61c Large objects landing.. 2006-09-02 04:57:50 +00:00
Federico Di Gregorio
36785f753b Work on large objects continue. 2006-09-01 17:15:27 +00:00
Federico Di Gregorio
64933f2004 Merge from 2_0_x branch up to r814. 2006-09-01 13:46:57 +00:00
Federico Di Gregorio
8eb118c63f Exposed connection status. 2006-09-01 08:20:11 +00:00
Federico Di Gregorio
38cf5f4520 Logging patch from Charlie. 2006-09-01 07:12:23 +00:00
Federico Di Gregorio
9299073649 First half of 8.1.4 securiy patch. 2006-05-24 09:43:55 +00:00
Federico Di Gregorio
27a063fecb DictCursor now support iteration. 2006-03-08 01:03:19 +00:00
Daniele Varrazzo
7f09080ba2 Tab removed 2006-01-21 04:09:11 +00:00
Federico Di Gregorio
81d86e9244 Logging connection/cursor implementation inspired by #90. 2006-01-20 04:07:23 +00:00
Daniele Varrazzo
202c002c5c * Docstrings added/fixed
* Added __all__ attributes to Python modules to explicit the package API
2006-01-12 18:36:57 +00:00
Federico Di Gregorio
1aed516938 Whitespace cleanup. 2006-01-06 02:58:24 +00:00
Daniele Varrazzo
3076046b3f * libpq.dll not used anymore. win32 setup uses pg_config too.
* Some typo fixed.
2006-01-05 16:56:40 +00:00
Federico Di Gregorio
5ea2fa636f Better DictCursor. 2005-12-06 05:55:58 +00:00
Daniele Varrazzo
ad76b5ba3c * psycopg/psycopgmodule.c: fixed exceptions refcount.
* fixed lots of doctrings and added Epydoc-generated docs support.
2005-11-26 07:47:48 +00:00
Daniele Varrazzo
62e4870b85 Fixed CLRF mix - trying with native eol 2005-11-24 04:22:35 +00:00
Daniele Varrazzo
1bac0484b5 Fixed a typo - but testing for SVN CRLF issues. 2005-11-24 04:16:41 +00:00
Federico Di Gregorio
f4fee20b3b In extensions.py: COMMITED -> COMMITTED. (Closes: #73) 2005-11-19 14:20:41 +00:00
Federico Di Gregorio
13a1dd197c Added warnings. 2005-11-15 16:21:55 +00:00
Federico Di Gregorio
96b2541939 Better fix for py2exe and related tools. 2005-11-15 16:05:15 +00:00
Federico Di Gregorio
f687f2853e Various pool changes. 2005-10-19 14:38:37 +00:00
Federico Di Gregorio
c7c2c38bcd Epydoc clean. :D 2005-10-18 05:57:02 +00:00
Federico Di Gregorio
0c67c641a8 Better docstrings for lib/ modules. 2005-10-18 05:42:00 +00:00
Federico Di Gregorio
06c8434520 Fixed typo in psycopg2.extensions. 2005-10-08 03:05:43 +00:00
Federico Di Gregorio
e1688431e0 Isolation level changes. 2005-10-08 03:04:40 +00:00
Federico Di Gregorio
a6b4a8b092 Indentation fixes. 2005-09-30 16:33:13 +00:00
Federico Di Gregorio
b7e5e5e272 piro pool.py patch. 2005-09-24 13:59:57 +00:00
Federico Di Gregorio
feeea0309a psycopg->psycopg2 fixes. 2005-09-12 02:29:46 +00:00
Federico Di Gregorio
5f00dc1100 Preparing release 2.0b4. 2005-07-17 04:08:08 +00:00
Federico Di Gregorio
5edfdc2a54 INTERVAL overflow fix. 2005-06-24 07:11:44 +00:00
Federico Di Gregorio
d7b10f4a9c psycopg1 .dictfetchone() fixed (closes #27). 2005-06-17 15:17:57 +00:00
Federico Di Gregorio
88f7ce153a Extra DictRow methods. 2005-05-19 04:48:26 +00:00
Federico Di Gregorio
35c42310ec DictRow fixes. 2005-05-10 02:29:24 +00:00
Federico Di Gregorio
431a2aec6c SGA-related changes. 2005-04-25 04:58:38 +00:00
Federico Di Gregorio
10dc03462b Little improvements to DictRow. 2005-04-11 07:20:46 +00:00
Federico Di Gregorio
728b4788de psycopg1 compatibility module (added autocommit.) 2005-04-03 06:16:24 +00:00
Federico Di Gregorio
fdb68599c7 psycopg1 compatibility module. 2005-04-03 06:13:24 +00:00
Federico Di Gregorio
19cb161d27 Array tokenization seems working. 2005-03-23 10:32:30 +00:00
Federico Di Gregorio
e5f558a6be COPY FROM works. 2005-03-01 16:41:02 +00:00
Federico Di Gregorio
cd672525e1 Adaptation fixes (a lot.) 2005-02-28 15:50:55 +00:00
Federico Di Gregorio
1ec3c83720 Temporary hack to make the AsIs adapter work (take 2.) 2005-02-28 09:16:49 +00:00
Federico Di Gregorio
ab02141d48 Temporary hack to make the AsIs adapter work. 2005-02-28 09:15:56 +00:00
Federico Di Gregorio
4b94e54473 Fixed example/myfirstrecipe.py 2005-02-27 15:03:53 +00:00
Federico Di Gregorio
1141149cd3 License changes. Fixes. Added register_adapter(). 2005-01-20 05:49:40 +00:00
Federico Di Gregorio
988095298e DictCursor fixes again. 2004-11-19 15:50:57 +00:00
Federico Di Gregorio
c904d97f69 Initial psycopg 2 import after SVN crash. 2004-10-19 03:17:12 +00:00