Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Accept overflow errors testing for LO64 funcs | Daniele Varrazzo | 2015-02-08 | 1 | -2/+2 | |
| | | | | | | It is raised on 32 bits by PyArg_ParseTuple. We may work around on truncate (maybe parsing a py_ssize_t) but we would have the same problem on seek as the offset is signed. | |||||
* | Propagate read error messages in COPY FROM | Daniele Varrazzo | 2015-02-08 | 1 | -0/+28 | |
| | | | | Fix ticket #270. | |||||
* | Convert Postgres time 24:00 into 00:00 | Daniele Varrazzo | 2015-02-08 | 1 | -0/+12 | |
| | | | | Fix ticket #278. | |||||
* | Fixed typo in tests | Daniele Varrazzo | 2014-12-25 | 1 | -1/+1 | |
| | ||||||
* | Keep into account psycopg build in lo64 tests | Daniele Varrazzo | 2014-12-25 | 1 | -10/+23 | |
| | ||||||
* | Modify truncate to use lo_truncate64. Use HAVE_LO64 define to use new lo_*64 ↵ | Blake Rouse | 2014-12-25 | 1 | -18/+49 | |
| | | | | methods. Check size of offset and length for versions without LO64. | |||||
* | Use lseek64 and ltell64 to support large object greater than 2gb in size. | Blake Rouse | 2014-12-25 | 1 | -0/+18 | |
| | ||||||
* | Cast time into timetz when the tzinfo field is set. | Hyunjun Kim | 2014-11-13 | 1 | -1/+11 | |
| | ||||||
* | Don't try to close the server cursor in error state | Daniele Varrazzo | 2014-09-16 | 1 | -0/+12 | |
| | | | | | | | | | `close()` is implicitly called by `__exit__()`, so an exit on error would run a query on a inerr connection, causing another exception hiding the original one. The fix is on `close()`, not on `__exit__()`, because the semantic of the latter is simply to call the former. Closes #262. | |||||
* | Fixed excessively strict notices test | Daniele Varrazzo | 2014-08-31 | 1 | -3/+0 | |
| | | | | | Failing with PG 9.4 because it generates other debug messages during the test run (rehashing catalog cache). | |||||
* | Clear adapters in test to maintain reference count | Daniele Varrazzo | 2014-08-28 | 1 | -4/+14 | |
| | ||||||
* | Added test to verify _psycopg can be imported | Daniele Varrazzo | 2014-08-28 | 1 | -1/+26 | |
| | ||||||
* | Added test to verify withhold cursors work in autocommit | Daniele Varrazzo | 2014-08-21 | 1 | -0/+22 | |
| | ||||||
* | 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. | |||||
* | Added wishful test suite for jsonb type | Daniele Varrazzo | 2014-08-13 | 1 | -0/+91 | |
| | ||||||
* | Fixed segfault if COPY statements are executed | Daniele Varrazzo | 2014-06-06 | 1 | -1/+39 | |
| | | | | Close ticket #219 | |||||
* | Added test with objects without length as callproc param | Daniele Varrazzo | 2014-06-06 | 1 | -0/+4 | |
| | ||||||
* | 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. | |||||
* | 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 | 1 | -0/+28 | |
| | | | | Fixes ticket #180. | |||||
* | Fixed explicit connection.cursor(cursor_factory=None) | Daniele Varrazzo | 2014-04-30 | 1 | -0/+10 | |
| | | | | Fixes issue #210. | |||||
* | Check the connection is really bad on exception before closing it | Daniele Varrazzo | 2014-04-05 | 1 | -0/+1 | |
| | | | | We end up here without a pgres sometimes (e.g. from lobject errors) | |||||
* | Fixed overflow opening a lobject with an oid not fitting in a signed int | Daniele Varrazzo | 2014-04-03 | 1 | -0/+6 | |
| | | | | Fixes :ticket:`203`. | |||||
* | Dropped unneeded pass in test | Daniele Varrazzo | 2014-04-03 | 1 | -1/+1 | |
| | ||||||
* | Fixed dsn and closed attributes in failing connection subclasses. | Daniele Varrazzo | 2014-04-03 | 1 | -0/+12 | |
| | | | | From ticket #192 discussion. | |||||
* | Don't segfault on uninitialized cursor | Daniele Varrazzo | 2014-02-26 | 1 | -0/+14 | |
| | | | | | | | It can happen with bad cursor subclasses not calling super's init. Raise an exception instead of segfaulting. Closes #195 | |||||
* | Merge branch 'range_sort' | Daniele Varrazzo | 2014-02-22 | 2 | -5/+78 | |
|\ | ||||||
| * | New implementation of Range sorting that works for Python 2.5 to 3.3, at least. | Chris Withers | 2014-02-18 | 2 | -8/+28 | |
| | | ||||||
| * | Coding style changes. | Chris Withers | 2014-02-14 | 1 | -51/+51 | |
| | | ||||||
| * | Provide a stable and consistent sort order for Range objects. | Chris Withers | 2014-02-12 | 1 | -5/+58 | |
| | | | | | | | | This matches postgres server-side behaviour and helps client applications that need to sort based on the primary key of tables where the primary key is or contains a range. | |||||
* | | Added str() for the Json adapter | Daniele Varrazzo | 2014-02-22 | 1 | -0/+11 | |
|/ | | | | Fixes ticket #191. | |||||
* | Check connection type in lobject init | Daniele Varrazzo | 2013-11-27 | 1 | -0/+4 | |
| | | | | Fixes ticket #187. | |||||
* | Really test named cursors in test_scroll_named() | Daniele Varrazzo | 2013-10-16 | 1 | -3/+1 | |
| | ||||||
* | Meaningful connection errors report a meaningful message | Daniele Varrazzo | 2013-10-16 | 1 | -0/+10 | |
| | | | | Fixes issue #173. | |||||
* | Fixed pickling of exceptions with no pgerror/pgcode set | Daniele Varrazzo | 2013-07-19 | 1 | -0/+15 | |
| | | | | Fixes ticket #170. | |||||
* | Merge branch 'range_eq_typerror' | Daniele Varrazzo | 2013-06-18 | 1 | -0/+13 | |
|\ | ||||||
| * | Uniform Range eq tests style | Daniele Varrazzo | 2013-06-18 | 1 | -5/+5 | |
| | | ||||||
| * | cater for comparison of subclasses | Chris Withers | 2013-05-26 | 1 | -0/+9 | |
| | | ||||||
| * | raising an exception here rather than returning False causes problems with ↵ | Chris Withers | 2013-05-26 | 1 | -7/+1 | |
| | | | | | | | | SQLAlchemy's internal state tracking | |||||
| * | more useful error message when comparing ranges with non-ranges | Chris Withers | 2013-05-26 | 1 | -0/+10 | |
| | | ||||||
* | | Added regression test for infinity parsing in dates | Daniele Varrazzo | 2013-05-11 | 1 | -2/+10 | |
| | | | | | | | | ...and a couple of typos. | |||||
* | | Added test to verify copysize handling in copy_expert | Daniele Varrazzo | 2013-05-06 | 1 | -0/+14 | |
| | | | | | | | | | | | | | | | | Not an original psycopg2 bug but present in pure python implementation, e.g. ctypes issue #25 and cffi issue #5. https://github.com/mvantellingen/psycopg2-ctypes/issues/25 https://github.com/chtd/psycopg2cffi/pull/5 | |||||
* | | Skip tests on python implementations without getrefcount() | Daniele Varrazzo | 2013-05-06 | 3 | -2/+13 | |
|/ | | | | PyPy is one of these. | |||||
* | Fix multiple misspellings | Piotr Kasprzyk | 2013-04-26 | 1 | -4/+4 | |
| | ||||||
* | Testing external script independent from psycopg implementation | Daniele Varrazzo | 2013-04-19 | 1 | -5/+6 | |
| | | | | Patch needed to run the test suite on psycopg2cffi or psycopg2ct. | |||||
* | Added cursor_factory connection attribute and connect() parameter | Daniele Varrazzo | 2013-04-07 | 1 | -0/+25 | |
| | ||||||
* | Testing boilerplate unified in a single base class | Daniele Varrazzo | 2013-04-07 | 18 | -271/+162 | |
| | | | | | The class makes a connection always available, allows creating new connection and closes everything on tear down. | |||||
* | Merge branch 'drop-py24' into devel | Daniele Varrazzo | 2013-04-05 | 1 | -23/+13 | |
|\ | ||||||
| * | Dropped support for Python 2.4 | Daniele Varrazzo | 2013-03-20 | 1 | -23/+13 | |
| | |