| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | | callproc: tests, docs, and comment/error-reporting touchups. | mrmilosz | 2015-12-12 | 1 | -0/+37 | |
| |/ | ||||||
| * | Allow pickling of cursor.description | Owen Raccuglia | 2015-02-08 | 1 | -0/+11 | |
| | | | | | | | | | | This is for people using dtuple.py; a dtuple.DatabaseTuple instance keeps a reference to cursor.description, which is not picklable because psycopg2 doesn't export the Column namedtuple it uses. This commit exports the Column namedtuple, and includes a test to verify the pickle/unpickle works after exporting Column. | |||||
| * | 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 test with objects without length as callproc param | Daniele Varrazzo | 2014-06-06 | 1 | -0/+4 | |
| | | ||||||
| * | 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 | |||||
| * | Really test named cursors in test_scroll_named() | Daniele Varrazzo | 2013-10-16 | 1 | -3/+1 | |
| | | ||||||
| * | Skip tests on python implementations without getrefcount() | Daniele Varrazzo | 2013-05-06 | 1 | -1/+3 | |
| | | | | | PyPy is one of these. | |||||
| * | Testing boilerplate unified in a single base class | Daniele Varrazzo | 2013-04-07 | 1 | -9/+3 | |
| | | | | | | The class makes a connection always available, allows creating new connection and closes everything on tear down. | |||||
| * | Added support with cursors without scroll clause | Daniele Varrazzo | 2012-08-15 | 1 | -1/+27 | |
| | | | | | | Using nothing is different from NO SCROLL, see DECLARE notes in PG docs. | |||||
| * | Added test for scrollable cursor | Daniele Varrazzo | 2012-08-15 | 1 | -0/+39 | |
| | | ||||||
| * | Name can be passed as None to cursor() | Daniele Varrazzo | 2012-04-11 | 1 | -0/+4 | |
| | | | | | | | | | Makes invocation from subclasses and generic code easier. Code simplified by using default values for keyword arguments and avoiding needless conversions back and forth between Python and C strings. Also added connection type check to cursor's init. | |||||
| * | close() methods don't raise errors if called on closed objects | Daniele Varrazzo | 2012-03-04 | 1 | -0/+6 | |
| | | ||||||
| * | Added test to check rowcount behaves fine during named cursor iteration | Daniele Varrazzo | 2012-02-23 | 1 | -0/+11 | |
| | | | | | | | Actually *it doesn't*: once we iterate the first itersize records, rowcount is reset to zero. If we want to fix it we need an extra member in the cursor. | |||||
| * | Added tests for cursor scroll | Daniele Varrazzo | 2011-12-26 | 1 | -0/+49 | |
| | | ||||||
| * | Fixed reference leak with arguments referenced more than once in queries | Daniele Varrazzo | 2011-12-11 | 1 | -0/+12 | |
| | | | | | | | Plus, some more care in objects life cycle, mostly in exceptions handling. Closes ticket #81. | |||||
| * | Test and document the named cursor stealing technique | Daniele Varrazzo | 2011-10-14 | 1 | -0/+14 | |
| | | ||||||
| * | Fixed tests to run with antebellum Postgres versions | Daniele Varrazzo | 2011-10-05 | 1 | -7/+9 | |
| | | ||||||
| * | WITH HOLD documentation a argument parsing changes | Federico Di Gregorio | 2011-08-10 | 1 | -2/+0 | |
| | | | | | Now any true value will do for the withhold parameter. | |||||
| * | New 'withhold' parameter for connection.cursor() | Federico Di Gregorio | 2011-08-10 | 1 | -1/+13 | |
| | | ||||||
| * | First try at curs.withhold implementation | Federico Di Gregorio | 2011-07-05 | 1 | -0/+21 | |
| | | ||||||
| * | Correctly detect an empty query sent to the backend | Daniele Varrazzo | 2011-03-04 | 1 | -0/+6 | |
| | | | | | Closes ticket #46. | |||||
| * | Fixed test for execution with older PostgreSQL versions | Daniele Varrazzo | 2011-02-23 | 1 | -1/+2 | |
| | | ||||||
| * | The cursor name can be a non-valid PostgreSQL identifier | Daniele Varrazzo | 2011-02-23 | 1 | -0/+10 | |
| | | ||||||
| * | Provide cursor.description as named tuple if possible | Daniele Varrazzo | 2011-02-19 | 1 | -1/+37 | |
| | | | | | If namedtuple() is not available, use regular tuples. | |||||
| * | Some cleanup in mogrify | Daniele Varrazzo | 2011-02-18 | 1 | -0/+11 | |
| | | | | | | | | | | | | | | | | | | - Raise an exception on incomplete placeholders. - Minor speedups. - Don't change the string in place (??!!) if the placeholder is not s and the value is null. The latter point can be done because downstream we don't accept anything different from s anyway (in the Bytes_Format function). Notice that now the format string is constant whatever the arguments. This means that executemany is still more inefficient than it should be as mogrify may work only on the parameters. However this is an implementation only worthwhile if we start supporting real parameters. Let's talk about that for the next release. | |||||
| * | Added cursor.itersize | Daniele Varrazzo | 2011-02-17 | 1 | -3/+3 | |
| | | | | | | | | The value is used to control the number of records to fetch per network roundtrip in named cursors iteration. Used to avoid the inefficient arraysize default of 1 without giving this value the magic meaning of 2000. | |||||
| * | Cleanup of skipping of testing methods on certain Py/PG versions | Daniele Varrazzo | 2011-02-15 | 1 | -2/+4 | |
| | | ||||||
| * | Skip test if clock_timestamp function is not available | Daniele Varrazzo | 2011-02-15 | 1 | -1/+2 | |
| | | ||||||
| * | Work around a 2to3 next fixer bug in a test | Daniele Varrazzo | 2011-02-11 | 1 | -2/+2 | |
| | | ||||||
| * | Merge branch 'python3' into python2 | Federico Di Gregorio | 2011-02-06 | 1 | -14/+15 | |
| |\ | ||||||
| | * | Merge branch 'python2' into python3 | Daniele Varrazzo | 2011-01-10 | 1 | -0/+22 | |
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: NEWS-2.3 tests/__init__.py tests/test_lobject.py tests/test_quote.py tests/testutils.py | |||||
| | * \ | Merge branch 'python2' into python3 | Daniele Varrazzo | 2011-01-03 | 1 | -0/+7 | |
| | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: NEWS-2.3 psycopg/connection_type.c tests/test_connection.py tests/types_basic.py | |||||
| | * \ \ | Merge branch 'python2' into python3 | Daniele Varrazzo | 2011-01-02 | 1 | -0/+32 | |
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: NEWS-2.3 setup.py | |||||
| | * | | | | Several tests ported to Python 3. | Daniele Varrazzo | 2010-12-31 | 1 | -11/+12 | |
| | | | | | | ||||||
| | * | | | | Test suite converted into a proper package. | Daniele Varrazzo | 2010-12-21 | 1 | -2/+2 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Dropped cyclic import from modules to tests: they were only working because a second copy of the package was found in the project dir. Use relative import so that 2to3 can do a good conversion. | |||||
| | * | | | | Some light cleanup for Py3 conversion. | Daniele Varrazzo | 2010-12-21 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | | | | | | Either flagged as warning by python2.6 -3 or converted by 2to3. | |||||
| * | | | | | Fetch 'arraysize' records per roundtrip in named cursors iteration | Daniele Varrazzo | 2011-02-05 | 1 | -0/+15 | |
| | | | | | | | | | | | | | | | | | | | | | Closes ticket #33. | |||||
| * | | | | | Added test to verify named cursor efficiency. | Daniele Varrazzo | 2011-02-01 | 1 | -0/+14 | |
| | |_|_|/ |/| | | | | | | | | | | | Iter shouldn't fetch one record at time. | |||||
| * | | | | Added license to unit tests | Daniele Varrazzo | 2011-01-09 | 1 | -0/+22 | |
| | | | | | | | | | | | | | | | | | As the test suite is now part of the source distribution. | |||||
| * | | | | All tests made executable. | Daniele Varrazzo | 2011-01-07 | 1 | -0/+0 | |
| | |_|/ |/| | | ||||||
| * | | | The cursor is weakly referenceable | Daniele Varrazzo | 2011-01-03 | 1 | -0/+7 | |
| | |/ |/| | ||||||
| * | | Added cursor.cast() method | Daniele Varrazzo | 2011-01-01 | 1 | -0/+32 | |
| |/ | | | | | The method exposes the typecasters lookup algorithm. Useful to create recursive typecasters. | |||||
| * | More careful connections handling during tests. | Daniele Varrazzo | 2010-11-28 | 1 | -6/+8 | |
| | | ||||||
| * | Added test to verify the ticket #7 is fixed. | Daniele Varrazzo | 2010-11-06 | 1 | -0/+13 | |
| | | ||||||
| * | cursor.mogrify() accepts unicode queries. | Daniele Varrazzo | 2010-10-05 | 1 | -0/+31 | |
| | | ||||||
| * | Added test to verify executemany doesn't propagate exceptions. | Daniele Varrazzo | 2010-07-09 | 1 | -0/+29 | |
