Daniele Varrazzo
397eace051
Added tests for two-phase commit/rollback.
2010-11-05 09:34:48 +00:00
Daniele Varrazzo
56c02b0f94
Added tpc_recover method.
2010-11-05 09:34:48 +00:00
Daniele Varrazzo
09983db6ed
Added tpc_commit and tpc_rollback methods.
2010-11-05 09:34:48 +00:00
Daniele Varrazzo
4f66de494b
Added tpc_prepare and CONN_STATUS_PREPARED.
2010-11-05 09:34:48 +00:00
Daniele Varrazzo
4588fa50f2
begin and commit can't be called during a two-phase transaction.
2010-11-05 09:34:48 +00:00
Daniele Varrazzo
98c5b1d374
Added tpc_begin() and current xid on connection.
2010-11-05 09:34:48 +00:00
Daniele Varrazzo
60ee39fa3d
Copyright of TPC files moved to LGPL V3.
...
With the permission of James Henstridge.
2010-11-05 09:34:47 +00:00
Daniele Varrazzo
8bfd34faf2
hook up two phase commit tests.
...
By James Henstridge on 2008-07-24.
Merged from lp:~jamesh/psycopg/two-phase-commit/revision/359
2010-11-05 09:34:47 +00:00
Daniele Varrazzo
7a9d678050
There is no point in allowing subclasses of Xid.
...
By James Henstridge on 2008-07-24.
Merged from lp:~jamesh/psycopg/two-phase-commit/revision/358
2010-11-05 09:34:47 +00:00
Daniele Varrazzo
22aea9114b
implement sequence behaviour, as required for transaction IDs.
...
By James Henstridge on 2008-07-24.
Merged from lp:~jamesh/psycopg/two-phase-commit/revision/357
2010-11-05 09:34:47 +00:00
Daniele Varrazzo
0021e56d80
Added connection.xid() and related objects.
...
By James Henstridge on 2008-07-23.
Merged from lp:~jamesh/psycopg/two-phase-commit/revision/356
* psycopg/connection_type.c (psyco_conn_xid): add a
Connection.xid() method that instantiates Xid objects.
* psycopg/psycopgmodule.c (init_psycopg): initialise the Xid
object type.
* psycopg/xid.h:
* psycopg/xid_type.c: Implement a basic transaction ID object for
use in two phase commit.
2010-11-05 09:34:47 +00:00
Daniele Varrazzo
e863222b5c
beginnings of a TPC test harness
...
By James Henstridge on 2008-05-12.
Merged from lp:~jamesh/psycopg/two-phase-commit/revision/354
2010-11-05 09:34:47 +00:00
Daniele Varrazzo
1a0fca09d9
Added documentation for the Notify object.
2010-11-05 09:34:47 +00:00
Daniele Varrazzo
4ec298e112
Notify object exposed in the extensions module.
2010-11-05 09:34:47 +00:00
Daniele Varrazzo
8db9c7085d
Added repr method for Notify object.
2010-11-05 09:34:47 +00:00
Daniele Varrazzo
f435d15c95
Adding Notify object with payload.
2010-11-05 09:34:46 +00:00
Daniele Varrazzo
e651308287
Check the correctness of the PID in the notify tests.
2010-11-05 09:34:46 +00:00
Daniele Varrazzo
d9e49e940a
Fixed versionchanged note on fractional time zone.
2010-10-31 23:57:40 +00:00
Daniele Varrazzo
7e482756c5
Use PQfreemem to free memory allocated by the libpq.
...
Bug reported by Anton Kovalev.
2010-10-08 14:26:40 +01:00
Daniele Varrazzo
6e71b3db05
Dropped PSYCOPG_OWN_QUOTING.
...
It was deprecated for version 2.1. There are bugs to be fixed made more
complex by its presence and it doesn't keep into account PostgreSQL 9.0
new binary format.
Time to go!
2010-10-08 12:27:47 +01:00
Daniele Varrazzo
baf65a0dda
Fixed access to freed memory in conn_get_isolation_level().
...
Bug reported by Anton Kovalev.
2010-10-08 12:02:53 +01:00
Daniele Varrazzo
850cd97ab3
A few doc fixes.
2010-10-08 10:16:59 +01:00
Daniele Varrazzo
bc2aefeacf
cursor.mogrify() accepts unicode queries.
2010-10-05 03:13:44 +01:00
Daniele Varrazzo
5b4d366f4e
Common code in execute() and mogrify() merged.
2010-10-05 01:43:23 +01:00
Daniele Varrazzo
575b2b5f77
The Inet type knows how to adapt itself.
...
Implemented __conform__ as the Adaptation PEP suggests. It is not
required for the type to be registered as adapter.
2010-09-25 23:55:55 +01:00
Daniele Varrazzo
75a6f783c5
Added PostgreSQL 9.0 error codes.
2010-09-23 23:43:23 +01:00
Daniele Varrazzo
b072a04c9c
DBAPI compatibility test updated to 1.12.
...
Nothing major: Python 3.0 compatibility fixes.
2010-09-23 23:36:58 +01:00
Daniele Varrazzo
2081ceffde
Don't execute a ROLLBACK on close()/GC.
...
The command wasn't sent since 2.2.0 due to a bug, but after a ML
discussion this behaviour proved more correct so the bug has become a
feature.
2010-09-23 23:28:30 +01:00
Daniele Varrazzo
cb1ef242a0
Bump to version 2.2.3-devel.
2010-09-23 23:27:55 +01:00
Daniele Varrazzo
bf9e557a71
Fixed typo in docs.
2010-09-23 23:17:32 +01:00
Daniele Varrazzo
19ae49e79e
Refer to PostgreSQL 9.0 documentation.
2010-09-23 23:14:39 +01:00
Daniele Varrazzo
80ebb14df4
Use stable anchors to reference PostgreSQL docs.
2010-09-23 23:13:59 +01:00
Daniele Varrazzo
9b3aa290d2
Added missing import required by Sphinx 1.0.
2010-08-05 01:08:21 +01:00
Daniele Varrazzo
660b75c2f4
Typo fixed.
2010-08-04 23:26:52 +01:00
Federico Di Gregorio
c3b835929b
Preparing release 2.2.2
2010-07-18 12:32:45 +02:00
Federico Di Gregorio
557608f715
Applied spelling fixes patch from Peter Eisentraut
2010-07-18 12:14:46 +02:00
Federico Di Gregorio
b263fbf274
Added deprecation warning to register_tstz_w_secs
2010-07-13 14:26:52 +02:00
Daniele Varrazzo
deb2d9050f
Exceptions raised by the columns iterator propagated.
2010-07-10 00:12:50 +01:00
Daniele Varrazzo
cb8128c6d4
Added test to verify copy_from() with columns.
2010-07-10 00:04:54 +01:00
Daniele Varrazzo
927f2bb1f1
Dropped logging.basicConfig() call.
...
It messes up with projects using logging but where no handler is
installed on the root logger. Bug reported by Joe Abbate.
2010-07-09 23:23:10 +01:00
Daniele Varrazzo
3773b50bb3
Propagate iterable exceptions to the executemany caller.
2010-07-09 23:22:35 +01:00
Daniele Varrazzo
bd6a4139da
Added test to verify executemany doesn't propagate exceptions.
2010-07-09 15:23:02 +01:00
Daniele Varrazzo
4a78e4068b
Dropped register_tstz_w_secs() implementation.
...
The function is no-op now that the default type caster can deal with
seconds in the tz offset.
2010-05-20 02:18:04 +01:00
Daniele Varrazzo
305d86f38a
Handle time zones with seconds in the UTC offset.
...
The offset is rounded to the nearest minute.
2010-05-20 02:16:04 +01:00
Daniele Varrazzo
e3d489f701
Bump to version 2.2.2-devel.
...
The -devel suffix appears in the docs we publish on the website, so it's
clear that they refer to the upcoming version.
2010-05-20 02:03:07 +01:00
Daniele Varrazzo
eacf6febfe
Warn on declarations not at beginning of the block.
...
They are accepted by gcc but not by MS compilers.
2010-05-19 11:40:38 +01:00
Daniele Varrazzo
b597ccf917
Tests can be run again different coroutine libraries.
...
Use PSYCOPG2_TEST_GREEN=<something>, where <something> is 1 or a library
name. Currently eventlet is supported.
2010-05-19 11:40:13 +01:00
Federico Di Gregorio
23391a3c55
Preparing release 2.2.1
2010-05-17 21:51:25 +02:00
Jason Erickson
069695b4ae
Additional Library for Windows linking and OpenSSL 1.0.0
...
Added the linking of crypt32.lib to the windows SSL build, as it seems that the current version of OpenSSL is looking for crypt32.lib as well.
2010-05-17 09:06:29 +02:00
Jason Erickson
1f1133b871
Micrsoft Visual C Compile Fix
...
Moved the declarations of variables/pointers to the beginning of the block, where MSVC wants them.
2010-05-17 09:06:14 +02:00