summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * Document WITH HOLD corrections.Daniele Varrazzo2014-08-211-0/+3
| |
| * Allow using named with hold cursors in autocommitAlexey Borzenkov2014-08-211-1/+1
| |
| * Added test to verify withhold cursors work in autocommitDaniele Varrazzo2014-08-211-0/+22
| |
| * No implicit transaction on named cursor closeAlexey Borzenkov2014-08-213-13/+13
| | | | | | | | | | | | Also, don't start an implicit transaction when fetching with named with hold cursor, since it already returns results from a previously committed transaction.
| * Added test to verify withhold transaction behaviourDaniele Varrazzo2014-08-211-4/+30
|/ | | | | A withhold cursor can read its data when the transaction is closed, so it shouldn't start a new one upon movement/close.
* Dropped simple type wrapper functionsDaniele Varrazzo2014-08-1517-175/+8
| | | | | These functions don't need to exist: exposing the type in the module is enough. It is actually better as one may use isinstance and such.
* Fixed segfault in List functionDaniele Varrazzo2014-08-151-3/+3
| | | | This function is never called: it segfaults 100%. To be removed.
* Dropped almost-no-op customized objects repr()Daniele Varrazzo2014-08-1510-72/+10
| | | | | | | | The default repr is enough: it prints <TypeName at 0xADDR> instead of <TypeName object at 0xADDR>. The only people being hurt by this change are the ones using doctests: they deserve it.
* Name the types after the module they are exposed fromDaniele Varrazzo2014-08-1511-21/+21
|
* Scrape PostgreSQL 9.4 error codes table tooDaniele Varrazzo2014-08-131-1/+1
| | | | No new error code found as of 9.4 beta2.
* Convert pool arguments to intDaniele Varrazzo2014-08-132-2/+4
| | | | | | | Failing to do so may cause dangerous misbehaviours such as an unbounded pool (because of lame comparison operators in Python 2). Fix ticket #220.
* Document PostgreSQL 9.4 as supportedDaniele Varrazzo2014-08-131-1/+1
| | | | | | | Actually there is a test failing in the test suite in PG 9.4beta2, but it's probably because the default logging level is to DEBUG. Will wait for the final release to check if the test is to be fixed. All other tests pass no problem.
* Merge branch 'jsonb'Daniele Varrazzo2014-08-137-31/+171
|\
| * Habemus jsonbDaniele Varrazzo2014-08-131-0/+1
| |
| * Added jsonb docsDaniele Varrazzo2014-08-132-15/+39
| |
| * Add register_default_jsonb() and register the typeDaniele Varrazzo2014-08-133-3/+22
| |
| * Added name param to register_json()Daniele Varrazzo2014-08-132-13/+18
| |
| * Added wishful test suite for jsonb typeDaniele Varrazzo2014-08-131-0/+91
|/
* Fix supported Py/PG versions in docsDaniele Varrazzo2014-08-042-2/+7
|
* Parse errocodes for PG 9.3 tooDaniele Varrazzo2014-07-312-2/+2
| | | | | There is no new errcode defined so no need to release this as a change, only change the docs.
* Add a few missing errcodesDaniele Varrazzo2014-07-313-1/+7
| | | | | They are used in the code but not defined in the SGML docs so the script failed to parse them.
* Parse the error codes from the text file if availableDaniele Varrazzo2014-07-311-3/+54
| | | | | The text file was added in PG 9.1. It contains a few errors not available in the SGML.
* Fixed segfault if COPY statements are executedDaniele Varrazzo2014-06-063-2/+56
| | | | Close ticket #219
* Don't ignore silently the `cursor.callproc` argument without a lengthDaniele Varrazzo2014-06-062-2/+7
|
* Added test with objects without length as callproc paramDaniele Varrazzo2014-06-061-0/+4
|
* cleanup remaining GPL license textChris Mildebrandt2014-05-207-56/+48
|
* cleanup remaining GPL license textChris Mildebrandt2014-05-201-70/+0
|
* Skip test_cleanup_on_badconn_close on WindowsJason Erickson2014-05-192-0/+14
| | | | | | | | | | | The Windows server version of PostgreSQL uses a function called pgkill in the file kill.c in place of the UNIX kill function. This pgkill function simulates some of the SIGHUP like commands by passing signals through a named pipe. Because it is passing the signal through a pipe, the server doesn't get the kill signal immediately and therefore fails the test on test_connection.ConnectionTests.test_cleanup_on_badconn_close. Ideally, the test should check to see if the server is running on Windows, not the psycopg.
* Added select.select timeout on AsyncTests.waitJason Erickson2014-05-191-2/+2
| | | | | | On Windows, the select.select() hangs/waits forever on the test_async_connection_error_message() test. Adding a 10 second timeout allows the tests to continue.
* Python 3.4 declared supportedDaniele Varrazzo2014-05-131-0/+1
|
* Parse the rowcount as longDaniele Varrazzo2014-05-132-2/+2
|
* Skip rowcount on copy test on postgres < 8.2Daniele Varrazzo2014-05-131-1/+2
| | | | It looks like the server doesn't send the message.
* Copy operations correctly set the cursor.rowcount attributeDaniele Varrazzo2014-05-053-8/+49
| | | | Fixes ticket #180.
* set_session() params documented in a more Python-friendly wayDaniele Varrazzo2014-05-051-1/+2
|
* Fixed explicit connection.cursor(cursor_factory=None)Daniele Varrazzo2014-04-303-5/+22
| | | | Fixes issue #210.
* Merge branch 'connection-closed'Daniele Varrazzo2014-04-057-16/+42
|\ | | | | | | NEWS for released 2.5.3 reordered.
| * Don't specify 0 or 1 in closed docsDaniele Varrazzo2014-04-051-2/+2
| | | | | | | | | | There's also 2 which means broken. But I prefer to leave that as implementation detail.
| * Close the connection if discovered bad on poll()Daniele Varrazzo2014-04-052-0/+13
| |
| * Check the connection is really bad on exception before closing itDaniele Varrazzo2014-04-052-1/+4
| | | | | | | | We end up here without a pgres sometimes (e.g. from lobject errors)
| * Fixed attempt of closing an already closed lobject on deallocDaniele Varrazzo2014-04-051-1/+1
| | | | | | | | | | This results in a "null without exception set" in the corrent state, which is caused by the connection being unexpectedly closed anyway.
| * Don't set an exception witout GIL closing lobjects with a bad connDaniele Varrazzo2014-04-051-1/+1
| | | | | | | | | | We ended up in this branch only for an excessively aggressive closing of the transaction that now I'm going to fix.
| * Close a connection if PQexec returned NULLDaniele Varrazzo2014-04-052-4/+14
| | | | | | | | | | | | | | | | This happens for Socket connections, not for TCP ones, where a result containing an error is returned and correctly handled by pq_raise() Closes ticket #196 but not #192: poll() still doesn't change the connection closed.
| * Allow get_transaction_status on closed connectionsDaniele Varrazzo2014-04-052-2/+1
|/ | | | It's a local operation and the libpq functions has a NULL guard.
* Avoid printing the typecast name in debug statementDaniele Varrazzo2014-04-042-3/+4
| | | | | | The way we were doing it is unsafe and causes assertion failures on Py3. Fixes ticket #188
* Fixed use of Python object with refcount 0 in cursor_initDaniele Varrazzo2014-04-042-11/+15
| | | | | Caused segfault running test_cursor.CursorTests.test_invalid_name under Python 3.4 built in debug mode.
* Work around pip issue #1630 breaking 'pip -e git+url'Daniele Varrazzo2014-04-042-0/+11
| | | | | | https://github.com/pypa/pip/issues/1630 Fixes ticket #18 (opened in 2010!)
* Clarify in the docs that mogrify() and query always return bytesDaniele Varrazzo2014-04-031-3/+5
|
* Fixed bug number typo in NEWS fileDaniele Varrazzo2014-04-031-1/+1
|
* Fixed overflow opening a lobject with an oid not fitting in a signed intDaniele Varrazzo2014-04-034-8/+16
| | | | Fixes :ticket:`203`.
* Dropped unneeded pass in testDaniele Varrazzo2014-04-031-1/+1
|