Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Preliminary test for a BYTES adapter. | Daniele Varrazzo | 2019-01-18 | 1 | -1/+1 | |
| | | | | | Allow returning unparsed bytes from databases with mixed encodings. See issue #519. | |||||
* | Merge remote-tracking branch ↵ | Daniele Varrazzo | 2018-12-27 | 1 | -1/+10 | |
|\ | | | | | | | 'eternalflow/execute-values-returning-clause-support' | |||||
| * | Docs wordsmith for execute_values() fetch param | Daniele Varrazzo | 2018-12-27 | 1 | -2/+3 | |
| | | ||||||
| * | 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. | |||||
| * | rename param name to fetch | Ivan Kotelnikov | 2018-11-24 | 1 | -4/+4 | |
| | | ||||||
| * | add RETURNING clause support in execute_values function | Ivan Kotelnikov | 2018-11-21 | 1 | -1/+10 | |
| | | ||||||
* | | Dropped deprecated PersistentConnectionPool | Jon Dufresne | 2018-12-04 | 1 | -55/+0 | |
|/ | | | | | | | | | 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. | |||||
* | Don't barf on Composite passed to execute_values()fix-794 | Daniele Varrazzo | 2018-10-23 | 1 | -0/+4 | |
| | | | | Close #794 | |||||
* | Full flake8 3.5 cleanup | Daniele Varrazzo | 2018-10-23 | 5 | -9/+7 | |
| | ||||||
* | Dropped duplicate classes in errors module | Daniele Varrazzo | 2018-10-23 | 1 | -469/+244 | |
| | | | | Also using a more compact class registration using a decorator | |||||
* | Merge branch 'connection-info' | Daniele Varrazzo | 2018-10-15 | 5 | -8/+8 | |
|\ | ||||||
| * | Use the connection.info properties instead of the legacy methodsconnection-info | Daniele Varrazzo | 2018-10-13 | 4 | -7/+7 | |
| | | ||||||
| * | Adding ConnectionInfo object documentation | Daniele Varrazzo | 2018-10-12 | 1 | -1/+1 | |
| | | | | | | | | | | | | I'm still fought whether docs should be in the C module or in the .rst. I'd prefer the first because DRY, but writing multiline strings in C really sucks. | |||||
* | | Merge branch 'master' into errors-moduleerrors-module | Daniele Varrazzo | 2018-10-15 | 7 | -19/+63 | |
|\ \ | ||||||
| * | | errorcodes map update to PostgreSQL 11 | Daniele Varrazzo | 2018-10-14 | 1 | -0/+1 | |
| |/ | ||||||
| * | Merge branch 'master' into https | Daniele Varrazzo | 2018-10-10 | 2 | -8/+51 | |
| |\ | ||||||
| | * | sql.Identifier can wrap a sequence of strings to represent qualified namesidentifier-sequence | Daniele Varrazzo | 2018-10-04 | 1 | -8/+38 | |
| | | | | | | | | | | | | Close #732. | |||||
| | * | Faster check for empty range in str() | Daniele Varrazzo | 2018-10-04 | 1 | -1/+1 | |
| | | | ||||||
| | * | Implement __str__ for range types | Michel Albert | 2018-09-30 | 1 | -0/+13 | |
| | | | ||||||
| * | | Prefer https:// URLs when available | Jon Dufresne | 2018-09-22 | 5 | -9/+9 | |
| |/ | ||||||
| * | Improve doc for extras.wait_select | Daniel Hahler | 2018-09-05 | 1 | -2/+2 | |
| | | ||||||
* | | Added errors.lookup() function | Daniele Varrazzo | 2018-10-15 | 1 | -0/+8 | |
| | | ||||||
* | | Errors module content updated to Postgres 11 | Daniele Varrazzo | 2018-10-14 | 1 | -0/+6 | |
| | | ||||||
* | | Generating the whole errors file from script | Daniele Varrazzo | 2018-08-17 | 1 | -3/+1512 | |
| | | ||||||
* | | Read exceptions to raise from a Python module | Daniele Varrazzo | 2018-08-17 | 1 | -0/+16 | |
|/ | ||||||
* | DictCursor and RealDictCursor rows maintain columns order | Daniele Varrazzo | 2018-05-21 | 1 | -4/+30 | |
| | | | | Close #177. | |||||
* | Restored methods iter*() on dict cursors rows | Daniele Varrazzo | 2018-05-21 | 1 | -9/+24 | |
| | ||||||
* | Merge branch 'master' into drop-2to3 | Daniele Varrazzo | 2018-05-20 | 2 | -2/+15 | |
|\ | ||||||
| * | Merge branch 'master' into encrypt-pass | Daniele Varrazzo | 2018-05-20 | 1 | -3/+6 | |
| |\ | ||||||
| | * | Allow non-ascii chars in namedtuple fields | Daniele Varrazzo | 2018-05-18 | 1 | -3/+6 | |
| | | | | | | | | | | | | | | | | | | | | | They can be valid chars in Python 3. Or maybe not? In which case Python will throw an exception, but that's fine. Fix regression introduced fixing #211 | |||||
| * | | Merge branch 'master' into master | Ashesh Vashi | 2018-05-08 | 8 | -187/+47 | |
| |\ \ | | |/ | ||||||
| | * | Convert fields names into valid Python identifiers in NamedTupleCursor | Daniele Varrazzo | 2018-01-29 | 1 | -1/+11 | |
| | | | | | | | | | | | | Close #211. | |||||
| * | | Moving the encrypt_password method from the connection class to the | Ashesh Vashi | 2017-09-14 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | psycopgmodule, and exported it from psycopg2.extensions as per review comments. | |||||
* | | | Drop 2to3 build step; make all code compatible with all Pythons | Jon Dufresne | 2017-12-11 | 8 | -22/+39 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make all library code compatible with both Python 2 and Python 3. Helps move to modern Python idioms. Can now write for Python 3 (with workarounds for Python 2) instead of the other way around. In the future, when it is eventually time to drop Python 2, the library will be in a better position to remove workarounds Added a very small comparability module compat.py where required. It includes definitions for: - text_type -- A type. str on Python 3. unicode on Python 2. - string_types -- A tuple. Contains only str on Python 3. Contains str & unicode on Python 2. | |||||
* | | | Drop the Python 2 style interface from DictRow | Jon Dufresne | 2017-12-11 | 1 | -22/+3 | |
| | | | | | | | | | | | | | | | Now standardizes on the Python 3 interface for all uses. Makes behavior of DictRow between Pythons more consistent and predictable. | |||||
* | | | User super() throughout DictRow class | Jon Dufresne | 2017-12-11 | 1 | -4/+4 | |
| |/ |/| | | | | | Avoid calling parent method directly. | |||||
* | | Drop long deprecated function register_tstz_w_secs() | Jon Dufresne | 2017-12-10 | 1 | -12/+0 | |
| | | | | | | | | | | | | | | | | | | | | Deprecated in commit b263fbf274f9085a1bddca018ed8a50d37023fc7 on 2010-01-13. The deprecation warning was first released in version 2.2.2. The function used to register an alternate type caster for TIMESTAMP WITH TIME ZONE to deal with historical time zones with seconds in the UTC offset. These are now correctly handled by the default type caster, so currently the function doesn't do anything. | |||||
* | | Dropped psycopg1 modulegoodbye-psycopg1 | Daniele Varrazzo | 2017-12-04 | 1 | -96/+0 | |
| | | ||||||
* | | Use builtin function next() throughout project | Jon Dufresne | 2017-12-01 | 2 | -7/+7 | |
| | | | | | | | | | | | | | | Available since Python 2.6. Use of .next() is deprecated and not supported in Python 3. Forward compatible with modern Python. https://docs.python.org/2/library/functions.html#next | |||||
* | | Use dict comprehensions | Daniele Varrazzo | 2017-11-28 | 2 | -6/+3 | |
| | | ||||||
* | | Documentation tweaked to omit Python 2.6 distinctions | Daniele Varrazzo | 2017-11-28 | 1 | -6/+6 | |
| | | ||||||
* | | Remove redundant parentheses | Hugo | 2017-11-28 | 3 | -3/+3 | |
| | | ||||||
* | | __slots__ should be a tuple | Hugo | 2017-11-28 | 1 | -1/+1 | |
| | | ||||||
* | | Update documentation to reflect JSON import behavior | Jon Dufresne | 2017-11-28 | 1 | -4/+2 | |
| | | | | | | | | | | | | | | | | The docs don't need to describe what will happen on Python versions before 2.6 as they are unsupported by psycopg2. Should have been included in commit d58844e5483483240f97537e9a77b4e79cea2ab3, but was missed. | |||||
* | | Merge branch 'python3_mintimeloggingconnection' | Daniele Varrazzo | 2017-11-28 | 1 | -0/+2 | |
|\ \ | ||||||
| * | | Patch for issue #609 for MinTimeLoggingConnection | Kevin Campbell | 2017-11-03 | 1 | -0/+2 | |
| |/ | | | | | | | | | On Python3 MinTimeLoggingConnection raises an exception as it tries to mix strings and bytes | |||||
* | | Merge remote-tracking branch 'jdufresne/decimal' | Daniele Varrazzo | 2017-11-28 | 1 | -8/+4 | |
|\ \ | ||||||
| * | | Remove workaround for decimal module | Jon Dufresne | 2017-11-26 | 1 | -8/+4 | |
| | | | | | | | | | | | | | | | | | | | | | | | | The decimal module is available on all Python versions supported by psycopg2. It has been available since Python 2.4. No need to catch an ImportError. https://docs.python.org/2/library/decimal.html | |||||
* | | | Merge remote-tracking branch 'jdufresne/json' | Daniele Varrazzo | 2017-11-28 | 1 | -28/+4 | |
|\ \ \ | ||||||
| * | | | Clean up JSON workarounds for unsupported Python versions | Jon Dufresne | 2017-11-26 | 1 | -28/+4 | |
| |/ / | | | | | | | | | | | | | | | | All Python versions supported by psycopg2 have the json module. It was added in Python 2.6. Can remove checks for availability, slightly simplifying the code. |