summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into errors-moduleerrors-moduleDaniele Varrazzo2018-10-157-19/+63
|\
| * errorcodes map update to PostgreSQL 11Daniele Varrazzo2018-10-141-0/+1
| |
| * Merge branch 'master' into httpsDaniele Varrazzo2018-10-102-8/+51
| |\
| | * sql.Identifier can wrap a sequence of strings to represent qualified namesidentifier-sequenceDaniele Varrazzo2018-10-041-8/+38
| | | | | | | | | | | | Close #732.
| | * Faster check for empty range in str()Daniele Varrazzo2018-10-041-1/+1
| | |
| | * Implement __str__ for range typesMichel Albert2018-09-301-0/+13
| | |
| * | Prefer https:// URLs when availableJon Dufresne2018-09-225-9/+9
| |/
| * Improve doc for extras.wait_selectDaniel Hahler2018-09-051-2/+2
| |
* | Added errors.lookup() functionDaniele Varrazzo2018-10-151-0/+8
| |
* | Errors module content updated to Postgres 11Daniele Varrazzo2018-10-141-0/+6
| |
* | Generating the whole errors file from scriptDaniele Varrazzo2018-08-171-3/+1512
| |
* | Read exceptions to raise from a Python moduleDaniele Varrazzo2018-08-171-0/+16
|/
* DictCursor and RealDictCursor rows maintain columns orderDaniele Varrazzo2018-05-211-4/+30
| | | | Close #177.
* Restored methods iter*() on dict cursors rowsDaniele Varrazzo2018-05-211-9/+24
|
* Merge branch 'master' into drop-2to3Daniele Varrazzo2018-05-202-2/+15
|\
| * Merge branch 'master' into encrypt-passDaniele Varrazzo2018-05-201-3/+6
| |\
| | * Allow non-ascii chars in namedtuple fieldsDaniele Varrazzo2018-05-181-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 masterAshesh Vashi2018-05-088-187/+47
| |\ \ | | |/
| | * Convert fields names into valid Python identifiers in NamedTupleCursorDaniele Varrazzo2018-01-291-1/+11
| | | | | | | | | | | | Close #211.
| * | Moving the encrypt_password method from the connection class to theAshesh Vashi2017-09-141-1/+1
| | | | | | | | | | | | | | | psycopgmodule, and exported it from psycopg2.extensions as per review comments.
* | | Drop 2to3 build step; make all code compatible with all PythonsJon Dufresne2017-12-118-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 DictRowJon Dufresne2017-12-111-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 classJon Dufresne2017-12-111-4/+4
| |/ |/| | | | | Avoid calling parent method directly.
* | Drop long deprecated function register_tstz_w_secs()Jon Dufresne2017-12-101-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-psycopg1Daniele Varrazzo2017-12-041-96/+0
| |
* | Use builtin function next() throughout projectJon Dufresne2017-12-012-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 comprehensionsDaniele Varrazzo2017-11-282-6/+3
| |
* | Documentation tweaked to omit Python 2.6 distinctionsDaniele Varrazzo2017-11-281-6/+6
| |
* | Remove redundant parenthesesHugo2017-11-283-3/+3
| |
* | __slots__ should be a tupleHugo2017-11-281-1/+1
| |
* | Update documentation to reflect JSON import behaviorJon Dufresne2017-11-281-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 Varrazzo2017-11-281-0/+2
|\ \
| * | Patch for issue #609 for MinTimeLoggingConnectionKevin Campbell2017-11-031-0/+2
| |/ | | | | | | | | On Python3 MinTimeLoggingConnection raises an exception as it tries to mix strings and bytes
* | Merge remote-tracking branch 'jdufresne/decimal'Daniele Varrazzo2017-11-281-8/+4
|\ \
| * | Remove workaround for decimal moduleJon Dufresne2017-11-261-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 Varrazzo2017-11-281-28/+4
|\ \ \
| * | | Clean up JSON workarounds for unsupported Python versionsJon Dufresne2017-11-261-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.
* | | Remove workarounds for namedtuple on Python <= 2.5Jon Dufresne2017-11-261-16/+5
|/ / | | | | | | | | | | namedtuple is available on all Python versions supported by psycopg2. It was first introduced in Python 2.6. Can remove all workarounds and special documentation.
* | Use modern except syntax throughout projectJon Dufresne2017-11-201-1/+1
|/ | | | | | The syntax "except Exception, exc:" is deprecated. All Python versions supported by psycopg2 support the newer, modern syntax. Forward compatible with future Python versions.
* Construct proper human sentences to describe execute_values()Daniele Varrazzo2017-08-311-6/+11
| | | | With bonus typos dropped.
* Use an import style reported not broken on Python 3.6Daniele Varrazzo2017-06-173-4/+4
| | | | Couldn't reproduce the issue but it has been documented in #550.
* Added Json.prepare()fix-562Daniele Varrazzo2017-06-161-1/+8
| | | | Close #562
* Error codes updated to PG 10 beta 1Daniele Varrazzo2017-06-051-0/+3
|
* errcodes updated to PG 9.6Daniele Varrazzo2017-06-051-0/+5
|
* Note that the fast executemany functions don't respect rowcountDaniele Varrazzo2017-03-281-0/+6
| | | | See issue #540
* Expose *DATETIMETZ* objects in the extensions moduleDaniele Varrazzo2017-03-221-4/+4
|
* Dropped repeated doc links in the same paragraphDaniele Varrazzo2017-03-161-6/+6
| | | | And some more sql docs cleanup.
* Added docs about the usability of sql objects with copy_expert()sql-copyDaniele Varrazzo2017-03-161-5/+6
| | | | See issue #529.
* Added test to verify sql objects work with copy_expert()Daniele Varrazzo2017-03-161-1/+1
| | | | | | I'll be honest: I lucked out, I didn't think about this combination. But maybe sheer luck, maybe using common code paths, it just works. Let's make it stays so.
* Ignore None arguments passed to make_dsn()fix-517Daniele Varrazzo2017-03-011-0/+3
| | | | Close #517.