Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | Document WITH HOLD corrections. | Daniele Varrazzo | 2014-08-21 | 1 | -0/+3 | |
| | | ||||||
| * | Allow using named with hold cursors in autocommit | Alexey Borzenkov | 2014-08-21 | 1 | -1/+1 | |
| | | ||||||
| * | Added test to verify withhold cursors work in autocommit | Daniele Varrazzo | 2014-08-21 | 1 | -0/+22 | |
| | | ||||||
| * | No implicit transaction on named cursor close | Alexey Borzenkov | 2014-08-21 | 3 | -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 behaviour | Daniele Varrazzo | 2014-08-21 | 1 | -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 functions | Daniele Varrazzo | 2014-08-15 | 17 | -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 function | Daniele Varrazzo | 2014-08-15 | 1 | -3/+3 | |
| | | | | This function is never called: it segfaults 100%. To be removed. | |||||
* | Dropped almost-no-op customized objects repr() | Daniele Varrazzo | 2014-08-15 | 10 | -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 from | Daniele Varrazzo | 2014-08-15 | 11 | -21/+21 | |
| | ||||||
* | Scrape PostgreSQL 9.4 error codes table too | Daniele Varrazzo | 2014-08-13 | 1 | -1/+1 | |
| | | | | No new error code found as of 9.4 beta2. | |||||
* | Convert pool arguments to int | Daniele Varrazzo | 2014-08-13 | 2 | -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 supported | Daniele Varrazzo | 2014-08-13 | 1 | -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 Varrazzo | 2014-08-13 | 7 | -31/+171 | |
|\ | ||||||
| * | Habemus jsonb | Daniele Varrazzo | 2014-08-13 | 1 | -0/+1 | |
| | | ||||||
| * | Added jsonb docs | Daniele Varrazzo | 2014-08-13 | 2 | -15/+39 | |
| | | ||||||
| * | Add register_default_jsonb() and register the type | Daniele Varrazzo | 2014-08-13 | 3 | -3/+22 | |
| | | ||||||
| * | Added name param to register_json() | Daniele Varrazzo | 2014-08-13 | 2 | -13/+18 | |
| | | ||||||
| * | Added wishful test suite for jsonb type | Daniele Varrazzo | 2014-08-13 | 1 | -0/+91 | |
|/ | ||||||
* | Fix supported Py/PG versions in docs | Daniele Varrazzo | 2014-08-04 | 2 | -2/+7 | |
| | ||||||
* | Parse errocodes for PG 9.3 too | Daniele Varrazzo | 2014-07-31 | 2 | -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 errcodes | Daniele Varrazzo | 2014-07-31 | 3 | -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 available | Daniele Varrazzo | 2014-07-31 | 1 | -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 executed | Daniele Varrazzo | 2014-06-06 | 3 | -2/+56 | |
| | | | | Close ticket #219 | |||||
* | Don't ignore silently the `cursor.callproc` argument without a length | Daniele Varrazzo | 2014-06-06 | 2 | -2/+7 | |
| | ||||||
* | Added test with objects without length as callproc param | Daniele Varrazzo | 2014-06-06 | 1 | -0/+4 | |
| | ||||||
* | cleanup remaining GPL license text | Chris Mildebrandt | 2014-05-20 | 7 | -56/+48 | |
| | ||||||
* | cleanup remaining GPL license text | Chris Mildebrandt | 2014-05-20 | 1 | -70/+0 | |
| | ||||||
* | Skip test_cleanup_on_badconn_close on Windows | Jason Erickson | 2014-05-19 | 2 | -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.wait | Jason Erickson | 2014-05-19 | 1 | -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 supported | Daniele Varrazzo | 2014-05-13 | 1 | -0/+1 | |
| | ||||||
* | Parse the rowcount as long | Daniele Varrazzo | 2014-05-13 | 2 | -2/+2 | |
| | ||||||
* | Skip rowcount on copy test on postgres < 8.2 | Daniele Varrazzo | 2014-05-13 | 1 | -1/+2 | |
| | | | | It looks like the server doesn't send the message. | |||||
* | Copy operations correctly set the cursor.rowcount attribute | Daniele Varrazzo | 2014-05-05 | 3 | -8/+49 | |
| | | | | Fixes ticket #180. | |||||
* | set_session() params documented in a more Python-friendly way | Daniele Varrazzo | 2014-05-05 | 1 | -1/+2 | |
| | ||||||
* | Fixed explicit connection.cursor(cursor_factory=None) | Daniele Varrazzo | 2014-04-30 | 3 | -5/+22 | |
| | | | | Fixes issue #210. | |||||
* | Merge branch 'connection-closed' | Daniele Varrazzo | 2014-04-05 | 7 | -16/+42 | |
|\ | | | | | | | NEWS for released 2.5.3 reordered. | |||||
| * | Don't specify 0 or 1 in closed docs | Daniele Varrazzo | 2014-04-05 | 1 | -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 Varrazzo | 2014-04-05 | 2 | -0/+13 | |
| | | ||||||
| * | Check the connection is really bad on exception before closing it | Daniele Varrazzo | 2014-04-05 | 2 | -1/+4 | |
| | | | | | | | | We end up here without a pgres sometimes (e.g. from lobject errors) | |||||
| * | Fixed attempt of closing an already closed lobject on dealloc | Daniele Varrazzo | 2014-04-05 | 1 | -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 conn | Daniele Varrazzo | 2014-04-05 | 1 | -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 NULL | Daniele Varrazzo | 2014-04-05 | 2 | -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 connections | Daniele Varrazzo | 2014-04-05 | 2 | -2/+1 | |
|/ | | | | It's a local operation and the libpq functions has a NULL guard. | |||||
* | Avoid printing the typecast name in debug statement | Daniele Varrazzo | 2014-04-04 | 2 | -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_init | Daniele Varrazzo | 2014-04-04 | 2 | -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 Varrazzo | 2014-04-04 | 2 | -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 bytes | Daniele Varrazzo | 2014-04-03 | 1 | -3/+5 | |
| | ||||||
* | Fixed bug number typo in NEWS file | Daniele Varrazzo | 2014-04-03 | 1 | -1/+1 | |
| | ||||||
* | Fixed overflow opening a lobject with an oid not fitting in a signed int | Daniele Varrazzo | 2014-04-03 | 4 | -8/+16 | |
| | | | | Fixes :ticket:`203`. | |||||
* | Dropped unneeded pass in test | Daniele Varrazzo | 2014-04-03 | 1 | -1/+1 | |
| |