Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| | * | | | Mention context managers in NEWS file | Daniele Varrazzo | 2012-12-04 | 1 | -0/+2 | |
| | | | | | ||||||
| | * | | | Make sure to call subclasses methods on context exit | Daniele Varrazzo | 2012-12-03 | 3 | -3/+64 | |
| | | | | | ||||||
| | * | | | Added documentation for the with statement | Daniele Varrazzo | 2012-12-03 | 3 | -0/+37 | |
| | | | | | ||||||
| | * | | | Added support for with statement for connection and cursor | Daniele Varrazzo | 2012-12-03 | 4 | -0/+250 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | The implementation should be conform to the DBAPI, although the "with" extension has not been released yet. | |||||
| | * | | | Fixed signature for METH_NOARGS functions | Daniele Varrazzo | 2012-12-03 | 2 | -17/+17 | |
| | | |/ | | |/| | ||||||
| * | | | Merge branch 'zope-fixes' into devel | Daniele Varrazzo | 2012-12-04 | 7 | -13/+175 | |
| |\ \ \ | ||||||
| | * | | | Fixed connections re-init across ZSQL methods | Daniele Varrazzo | 2012-12-04 | 2 | -4/+5 | |
| | | | | | | | | | | | | | | | | | | | | Fixes issue #142, probably #123 and #125 too. | |||||
| | * | | | Added specific pool implementation for ZPsycopgDA | Daniele Varrazzo | 2012-12-04 | 2 | -3/+151 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The implementation is based on psycopg 2.4, which should be less broken (zope-wise) of the current one. Instantiating psycopg2.pool.PersistentConnectionPool now raises a warning. This should fix ticket #123, #125. The issue of the reset on set_client_encoding() is still present but that's always been there and I'm no good at fixing it. | |||||
| | * | | | Use set_session instead of set_isolation_level where available | Daniele Varrazzo | 2012-12-04 | 1 | -4/+9 | |
| | | | | | | | | | | | | | | | | | | | | Avoid spurious queries as reported in psycopg2 ticket #125. | |||||
| | * | | | Show all the available isolation levels in ZPsycopgDA menu | Daniele Varrazzo | 2012-12-04 | 2 | -1/+9 | |
| | | | | | ||||||
| | * | | | Added 2.4.6 to the allowed versions for ZPsycopgDA | Daniele Varrazzo | 2012-12-04 | 1 | -1/+1 | |
| |/ / / | | | | | | | | | | | | | | | | | Dropped beta versions and the versions with the messed up isolation level constants. | |||||
| * | | | Fixed version number in NEWS file | Daniele Varrazzo | 2012-12-03 | 1 | -1/+1 | |
| | | | | ||||||
| * | | | Fixed empty strings handling in composite caster | Daniele Varrazzo | 2012-12-03 | 3 | -2/+24 | |
| |/ / | | | | | | | | | | Closes ticket #141. | |||||
| * | | Splitting the release of new features in version 2.5 | Daniele Varrazzo | 2012-12-03 | 5 | -11/+17 | |
| | | | ||||||
| * | | Release the GIL around PQgetResult calls after COPY | Daniele Varrazzo | 2012-11-24 | 2 | -5/+18 | |
| | | | | | | | | | | | | It should fix ticket #140. | |||||
| * | | Fixed a couple of terms in the docs | Daniele Varrazzo | 2012-11-12 | 1 | -2/+2 | |
| | | | | | | | | | | | | After Pierre-Louis Bonicoli's suggestions in ticket #138. | |||||
| * | | Added note about the adapted attribute in the module-level wrappers | Daniele Varrazzo | 2012-10-27 | 1 | -11/+17 | |
| | | | | | | | | | | | | | | | Specifying it otherwise people expects the wrappers to have full datetime semantics: see ticket #136. | |||||
| * | | Merge branch 'fix-135' into devel | Daniele Varrazzo | 2012-10-21 | 3 | -4/+25 | |
| |\ \ | ||||||
| | * | | Fixed pickling of FixedOffsetTimezone objects | Daniele Varrazzo | 2012-10-21 | 3 | -2/+24 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | I have also verified that the fixed class can unpickle instance pickled with the buggy one and viceversa. Fixes ticket #135. | |||||
| | * | | More idiomatic way to call FixedOffsetTimezone.__new__ superclass | Daniele Varrazzo | 2012-10-21 | 1 | -1/+1 | |
| | | | | ||||||
| | * | | Dropped redundant call to FixedOffsetTimezone.__init__ | Daniele Varrazzo | 2012-10-21 | 1 | -1/+0 | |
| |/ / | ||||||
| * | | Clarification in copy_expert docs | Daniele Varrazzo | 2012-10-15 | 1 | -2/+11 | |
| | | | | | | | | | | | | Closes ticket #134. | |||||
| * | | Discard any result produced by cursor.executemany() | Daniele Varrazzo | 2012-10-11 | 5 | -28/+44 | |
| | | | ||||||
| * | | Merge branch 'fix-113' into devel | Daniele Varrazzo | 2012-10-11 | 7 | -27/+139 | |
| |\ \ | ||||||
| | * | | Close the connection on error in callback | Daniele Varrazzo | 2012-10-06 | 4 | -61/+69 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unfortunately PQcancel blocks, so it's not better than PQgetResult. It has been suggested to use PQreset in non-blocking way but this would give the Python program the burden of handling a connection done but not configured in an unexpected place. | |||||
| | * | | Get the result from the connection after the green panic | Daniele Varrazzo | 2012-10-06 | 2 | -1/+16 | |
| | | | | | | | | | | | | | | | | | | | | | | | | Otherwise the connection won't be usable in case we manage to put it back on track (libpq reports "another command is already in progress") | |||||
| | * | | Added compatibility PyErr_WarnEx macro for Python 2.4 | Daniele Varrazzo | 2012-10-06 | 1 | -0/+5 | |
| | | | | ||||||
| | * | | Attempt to fix issue #113. | Daniele Varrazzo | 2012-10-06 | 2 | -15/+88 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the network is down, trying to read blocking will hang the process hard (ctrl-c not working). Send a cancel signal instead (as suggested in http://archives.postgresql.org/pgsql-hackers/2012-07/msg00903.php) and go back into a green polling: this should allow a further error (e.g. another ctrl-c) to break the loop. In this case we cannot assume anything about the state of the connection, so we close it. | |||||
| | * | | Added function conn_close_locked() | Daniele Varrazzo | 2012-10-06 | 2 | -7/+18 | |
| | | | | ||||||
| * | | | Copyright bumped to 2012 in docs pages | Daniele Varrazzo | 2012-10-07 | 1 | -1/+1 | |
| | | | | ||||||
| * | | | Docs front page adjustments | Daniele Varrazzo | 2012-10-07 | 1 | -12/+14 | |
| | | | | ||||||
| * | | | Added install section to the manual | Daniele Varrazzo | 2012-10-07 | 4 | -0/+269 | |
| | | | | ||||||
| * | | | Dropped compiler warning on Py 2.4 | Daniele Varrazzo | 2012-10-06 | 1 | -0/+6 | |
| |/ / | ||||||
| * | | Using super() in the connection/cursor subclasses | Daniele Varrazzo | 2012-09-28 | 1 | -29/+28 | |
| | | | | | | | | | | | | | | | This opens to collaborative subclassing (e.g. you may want to have a logging namedtuple cursor...) | |||||
| * | | Merge branch 'range-type' into devel | Daniele Varrazzo | 2012-09-27 | 5 | -1/+1051 | |
| |\ \ | ||||||
| | * | | More helpful error messasge on Range order attempts | Daniele Varrazzo | 2012-09-25 | 1 | -1/+3 | |
| | | | | ||||||
| | * | | Grammar correction for RangeCaster.array_typecaster | Daniele Varrazzo | 2012-09-24 | 1 | -1/+1 | |
| | | | | ||||||
| | * | | Added documentation for range types and adaptation | Daniele Varrazzo | 2012-09-24 | 3 | -35/+128 | |
| | | | | ||||||
| | * | | Don't need to implement __new__ to make an immutable class | Daniele Varrazzo | 2012-09-24 | 1 | -4/+1 | |
| | | | | ||||||
| | * | | Fixed search of types into schemas. | Daniele Varrazzo | 2012-09-24 | 2 | -3/+30 | |
| | | | | | | | | | | | | | | | | | | | | | | | | We don't need to look for stuff implicitly into pg_catalog as all the builtin ranges are already registered. So just search into 'public' if the schema is not specified. | |||||
| | * | | Added test for range not found | Daniele Varrazzo | 2012-09-24 | 1 | -0/+6 | |
| | | | | ||||||
| | * | | Added containment tests for unbounded intervals | Daniele Varrazzo | 2012-09-23 | 1 | -0/+23 | |
| | | | | ||||||
| | * | | Range objects cannot be ordered | Daniele Varrazzo | 2012-09-23 | 2 | -0/+12 | |
| | | | | ||||||
| | * | | Range objects are nonzero when not empty | Daniele Varrazzo | 2012-09-23 | 2 | -0/+9 | |
| | | | | ||||||
| | * | | Range objects are immutable and hashable | Daniele Varrazzo | 2012-09-23 | 2 | -1/+35 | |
| | | | | ||||||
| | * | | Dropped Range._empty attribute | Daniele Varrazzo | 2012-09-23 | 1 | -13/+13 | |
| | | | | | | | | | | | | | | | | | | | | We can do with just _bounds: it will make eq and hash easier to implement in a consistent way | |||||
| | * | | Added in operator for ranges | Daniele Varrazzo | 2012-09-23 | 2 | -0/+45 | |
| | | | | ||||||
| | * | | NumberRange renamed to NumericRange | Daniele Varrazzo | 2012-09-23 | 3 | -25/+25 | |
| | | | | | | | | | | | | | | | | | | | | | | | | I was avoiding Numeric to avoid conflicting with the 'numeric' Postgres type, which is an alias for 'decimal'. But now that there is a single numeric range I can use the preferred name | |||||
| | * | | Dropped Range classes for specific numeric types | Daniele Varrazzo | 2012-09-23 | 3 | -23/+10 | |
| | | | | ||||||
| | * | | Added first implementation of Range type, adapter, typecaster | Daniele Varrazzo | 2012-09-23 | 3 | -5/+816 | |
| | | | |