summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* Accept overflow errors testing for LO64 funcsDaniele Varrazzo2015-02-081-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 FROMDaniele Varrazzo2015-02-081-0/+28
| | | | Fix ticket #270.
* Convert Postgres time 24:00 into 00:00Daniele Varrazzo2015-02-081-0/+12
| | | | Fix ticket #278.
* Fixed typo in testsDaniele Varrazzo2014-12-251-1/+1
|
* Keep into account psycopg build in lo64 testsDaniele Varrazzo2014-12-251-10/+23
|
* Modify truncate to use lo_truncate64. Use HAVE_LO64 define to use new lo_*64 ↵Blake Rouse2014-12-251-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 Rouse2014-12-251-0/+18
|
* Cast time into timetz when the tzinfo field is set.Hyunjun Kim2014-11-131-1/+11
|
* Don't try to close the server cursor in error stateDaniele Varrazzo2014-09-161-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 testDaniele Varrazzo2014-08-311-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 countDaniele Varrazzo2014-08-281-4/+14
|
* Added test to verify _psycopg can be importedDaniele Varrazzo2014-08-281-1/+26
|
* Added test to verify withhold cursors work in autocommitDaniele Varrazzo2014-08-211-0/+22
|
* 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.
* Added wishful test suite for jsonb typeDaniele Varrazzo2014-08-131-0/+91
|
* Fixed segfault if COPY statements are executedDaniele Varrazzo2014-06-061-1/+39
| | | | Close ticket #219
* Added test with objects without length as callproc paramDaniele Varrazzo2014-06-061-0/+4
|
* 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.
* 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-051-0/+28
| | | | Fixes ticket #180.
* Fixed explicit connection.cursor(cursor_factory=None)Daniele Varrazzo2014-04-301-0/+10
| | | | Fixes issue #210.
* Check the connection is really bad on exception before closing itDaniele Varrazzo2014-04-051-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 intDaniele Varrazzo2014-04-031-0/+6
| | | | Fixes :ticket:`203`.
* Dropped unneeded pass in testDaniele Varrazzo2014-04-031-1/+1
|
* Fixed dsn and closed attributes in failing connection subclasses.Daniele Varrazzo2014-04-031-0/+12
| | | | From ticket #192 discussion.
* Don't segfault on uninitialized cursorDaniele Varrazzo2014-02-261-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 Varrazzo2014-02-222-5/+78
|\
| * New implementation of Range sorting that works for Python 2.5 to 3.3, at least.Chris Withers2014-02-182-8/+28
| |
| * Coding style changes.Chris Withers2014-02-141-51/+51
| |
| * Provide a stable and consistent sort order for Range objects.Chris Withers2014-02-121-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 adapterDaniele Varrazzo2014-02-221-0/+11
|/ | | | Fixes ticket #191.
* Check connection type in lobject initDaniele Varrazzo2013-11-271-0/+4
| | | | Fixes ticket #187.
* Really test named cursors in test_scroll_named()Daniele Varrazzo2013-10-161-3/+1
|
* Meaningful connection errors report a meaningful messageDaniele Varrazzo2013-10-161-0/+10
| | | | Fixes issue #173.
* Fixed pickling of exceptions with no pgerror/pgcode setDaniele Varrazzo2013-07-191-0/+15
| | | | Fixes ticket #170.
* Merge branch 'range_eq_typerror'Daniele Varrazzo2013-06-181-0/+13
|\
| * Uniform Range eq tests styleDaniele Varrazzo2013-06-181-5/+5
| |
| * cater for comparison of subclassesChris Withers2013-05-261-0/+9
| |
| * raising an exception here rather than returning False causes problems with ↵Chris Withers2013-05-261-7/+1
| | | | | | | | SQLAlchemy's internal state tracking
| * more useful error message when comparing ranges with non-rangesChris Withers2013-05-261-0/+10
| |
* | Added regression test for infinity parsing in datesDaniele Varrazzo2013-05-111-2/+10
| | | | | | | | ...and a couple of typos.
* | Added test to verify copysize handling in copy_expertDaniele Varrazzo2013-05-061-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 Varrazzo2013-05-063-2/+13
|/ | | | PyPy is one of these.
* Fix multiple misspellingsPiotr Kasprzyk2013-04-261-4/+4
|
* Testing external script independent from psycopg implementationDaniele Varrazzo2013-04-191-5/+6
| | | | Patch needed to run the test suite on psycopg2cffi or psycopg2ct.
* Added cursor_factory connection attribute and connect() parameterDaniele Varrazzo2013-04-071-0/+25
|
* Testing boilerplate unified in a single base classDaniele Varrazzo2013-04-0718-271/+162
| | | | | The class makes a connection always available, allows creating new connection and closes everything on tear down.
* Merge branch 'drop-py24' into develDaniele Varrazzo2013-04-051-23/+13
|\
| * Dropped support for Python 2.4Daniele Varrazzo2013-03-201-23/+13
| |