| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Handle failed allocation in list adaptationcode-cleanup | Daniele Varrazzo | 2019-01-21 | 1 | -1/+3 |
| | | |||||
| * | Dropped funny handling of REPLICATION_* constants | Daniele Varrazzo | 2019-01-21 | 3 | -31/+8 |
| | | |||||
| * | _psyco_curs_execute() simplified | Daniele Varrazzo | 2019-01-21 | 1 | -53/+39 |
| | | | | | | | | Dropped code duplications, more regular increc/decref pattern. Check the return value of formatting named cursor: would have segfaulted in case of error. | ||||
| * | More straightforward semantics for psyco_GetDecimalType | Daniele Varrazzo | 2019-01-21 | 2 | -6/+4 |
| | | | | | Raise an exception when returning NULL, leave the caller cleaning it. | ||||
| * | Dropped use of converter function to verify copy argument | Daniele Varrazzo | 2019-01-21 | 1 | -44/+25 |
| | | | | | They weren't really converters, and they confused the static checker | ||||
| * | Mark psyco_set_error as returning a borrowed object | Daniele Varrazzo | 2019-01-21 | 2 | -3/+2 |
| | | |||||
| * | Added utils.h file | Daniele Varrazzo | 2019-01-21 | 5 | -141/+176 |
| | | | | | | | utils.c functions definition moved out of psycopg.h Some utility functions defined into psycopgmodule.c moved into utils.c. | ||||
| * | Mark setter as raising on negative results | Daniele Varrazzo | 2019-01-21 | 3 | -6/+6 |
| | | | | | Fixed static check of psyco_conn_cursor(). | ||||
| * | Consider the case dereferencing weakref in conn_poll returns NULL | Daniele Varrazzo | 2019-01-21 | 1 | -1/+10 |
| | | | | | | It shouldn't but handle the case to avoid a possible null pointer dereferencing. | ||||
| * | Dropped possible wrong code path in conn_decode | Daniele Varrazzo | 2019-01-21 | 1 | -13/+15 |
| | | | | | | It shouldn't happen for both cdecoder and pydecoder to be null, but just in case... | ||||
| * | Wrap _Bytes_Resize into a function with clearer semantic | Daniele Varrazzo | 2019-01-21 | 1 | -5/+19 |
| | | | | | Limit the static checker hacking to a simpler function. | ||||
| * | Avoid unlikely leaks in case of memory errors in Bytes_Format | Daniele Varrazzo | 2019-01-21 | 1 | -0/+4 |
| | | |||||
| * | Move var setting into the only case using it | Daniele Varrazzo | 2019-01-21 | 1 | -5/+2 |
| | | | | | | The original function was more complex than this. This refactoring avoids a false positive in the static checker | ||||
| * | Avoid using PyErr_BadInternalCall as the static checker doesn't get it | Daniele Varrazzo | 2019-01-21 | 1 | -1/+1 |
| | | |||||
| * | Use the real definition of Py_LOCAL_INLINE | Daniele Varrazzo | 2019-01-21 | 1 | -4/+1 |
| | | |||||
| * | Bytes_Format: use a couple of macros instead of functions | Daniele Varrazzo | 2019-01-21 | 1 | -3/+2 |
| | | | | | The type was already checked upstream in the func body. | ||||
| * | psycopg_escape_string: don't make me cringe | Daniele Varrazzo | 2019-01-21 | 1 | -8/+8 |
| | | | | | Just reformatted. | ||||
| * | Stricter use of PyArg_ParseTuple typed objects | Daniele Varrazzo | 2019-01-21 | 2 | -7/+12 |
| | | | | | The function expect PyObject *, not subclasses. | ||||
| * | Respect PyCFunction signature in METH_NOARGS functions | Daniele Varrazzo | 2019-01-21 | 6 | -25/+25 |
| | | | | | A second parameter does exist, although it's always NULL. | ||||
| * | Merge remote-tracking branch 'origin/register-bytes' | Daniele Varrazzo | 2019-01-19 | 10 | -18/+100 |
| |\ | | | | | | | Close #835 | ||||
| | * | Added documentation for BYTES casterregister-bytes | Daniele Varrazzo | 2019-01-18 | 4 | -3/+39 |
| | | | |||||
| | * | Added BYTESARRAY typecaster | Daniele Varrazzo | 2019-01-18 | 4 | -6/+33 |
| | | | |||||
| | * | Added test for BYTES typecaster | Daniele Varrazzo | 2019-01-18 | 1 | -0/+11 |
| | | | |||||
| | * | Fixed typecast definition order | Daniele Varrazzo | 2019-01-18 | 1 | -1/+1 |
| | | | | | | | | | | | Didn't notice that the order matter: the last typecaster registered is the effective one so let STRING win over UNICODE and BYTES. | ||||
| | * | Preliminary test for a BYTES adapter. | Daniele Varrazzo | 2019-01-18 | 3 | -10/+18 |
| |/ | | | | | Allow returning unparsed bytes from databases with mixed encodings. See issue #519. | ||||
| * | Merge pull request #828 from wbolster/patch-1 | Daniele Varrazzo | 2019-01-08 | 1 | -1/+1 |
| |\ | | | | | mention postgresql 11 in install docs | ||||
| | * | mention postgresql 11 in install docs | wouter bolsterlee | 2018-12-07 | 1 | -1/+1 |
| | | | |||||
| * | | Don't call CLEARPGRES on the cursor state without holding the gil | Daniele Varrazzo | 2019-01-02 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | There is a chance it is executed by two different threads resulting in issue #384. I havent't found any other case that may lead to double free. | ||||
| * | | Couple of objects into NEWS entries converted into links | Daniele Varrazzo | 2018-12-27 | 1 | -3/+4 |
| | | | |||||
| * | | Added # char to a few issues in news | Daniele Varrazzo | 2018-12-27 | 1 | -5/+5 |
| | | | | | | | | | Just a formatting thing #ocd #youdontcare #really. | ||||
| * | | Merge remote-tracking branch ↵ | Daniele Varrazzo | 2018-12-27 | 4 | -1/+23 |
| |\ \ | |/ |/| | | | 'eternalflow/execute-values-returning-clause-support' | ||||
| | * | Mention execute_values() fetch in news | Daniele Varrazzo | 2018-12-27 | 1 | -0/+2 |
| | | | |||||
| | * | Docs wordsmith for execute_values() fetch param | Daniele Varrazzo | 2018-12-27 | 2 | -3/+4 |
| | | | |||||
| | * | Some harmless adjustments in execute_values() code | Daniele Varrazzo | 2018-12-27 | 1 | -3/+2 |
| | | | | | | | | | No optional result, and create the list only if requred. | ||||
| | * | add versionchanged to docs | Ivan Kotelnikov | 2018-11-24 | 1 | -0/+2 |
| | | | |||||
| | * | rename param name to fetch | Ivan Kotelnikov | 2018-11-24 | 2 | -5/+5 |
| | | | |||||
| | * | write test for fetch_result flag | Ivan Kotelnikov | 2018-11-22 | 1 | -0/+9 |
| | | | |||||
| | * | add RETURNING clause support in execute_values function | Ivan Kotelnikov | 2018-11-21 | 1 | -1/+10 |
| | | | |||||
| * | | Merge pull request #823 from jdufresne/dep-pool | Daniele Varrazzo | 2018-12-05 | 3 | -63/+2 |
| |\ \ | | | | | | | Dropped deprecated PersistentConnectionPool | ||||
| | * | | Dropped deprecated PersistentConnectionPool | Jon Dufresne | 2018-12-04 | 3 | -63/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This class was deprecated in 27cd6c4880161a715b1952be64cc96ebc968fa2b (Dec 2, 2012), which was first included in release 2.5. Enough time has passed for library uses to find an alternative solution. This class was untested. | ||||
| * | | | Merge pull request #819 from jdufresne/ctypes | Daniele Varrazzo | 2018-12-05 | 1 | -27/+8 |
| |\ \ \ | |/ / |/| | | Remove unnecessary test decorator 'skip_if_cant_cast' | ||||
| | * | | Remove unnecessary test decorator 'skip_if_cant_cast' | Jon Dufresne | 2018-12-04 | 1 | -27/+8 |
| |/ / | | | | | | | | | | | ctypes is available and works on all supported Pythons. It has been available since Python 2.5. The tests were written when Python 2.4 was still supported. | ||||
| * | | Merge pull request #822 from jdufresne/decorate-all | Daniele Varrazzo | 2018-12-04 | 2 | -88/+50 |
| |\ \ | | | | | | | Simplify 'decorate_all_tests' usage by decorating the test class | ||||
| | * | | Simplify 'decorate_all_tests' usage by decorating the test class | Jon Dufresne | 2018-12-01 | 2 | -88/+50 |
| | |/ | | | | | | | | | Skip tests as early as possible by decorating the whole class with unittest.skipIf instead of every test method individually. | ||||
| * | | Merge pull request #821 from jdufresne/skip-libpq | Daniele Varrazzo | 2018-12-04 | 2 | -7/+0 |
| |\ \ | | | | | | | Remove workarounds for unsupported libpq < 9.1 | ||||
| | * | | Remove workarounds for unsupported libpq < 9.1 | Jon Dufresne | 2018-12-01 | 2 | -7/+0 |
| | |/ | | | | | | | | | | | Per http://initd.org/psycopg/docs/install.html#prerequisites: > PostgreSQL client library version from 9.1 | ||||
| * | | Merge pull request #820 from jdufresne/appveyor | Daniele Varrazzo | 2018-12-04 | 1 | -3/+2 |
| |\ \ | | | | | | | Remove Python 3.3 references from appveyor.yml | ||||
| | * | | Remove Python 3.3 references from appveyor.yml | Jon Dufresne | 2018-12-01 | 1 | -3/+2 |
| | |/ | | | | | | | | | Python 3.3 has been unsupported since c2d082e896e7bcb81231603404e7d4789e56cf00. | ||||
| * | | Merge pull request #818 from jdufresne/bool-simplify | Daniele Varrazzo | 2018-12-04 | 5 | -47/+12 |
| |\ \ | |/ |/| | Simplify PyBool usage with Python convenience macros/functions | ||||
| | * | Simplify PyBool usage with Python convenience macros/functions | Jon Dufresne | 2018-11-30 | 5 | -47/+12 |
| |/ | | | | https://docs.python.org/3/c-api/bool.html | ||||
