]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Fixed the ``.python_type`` attribute of :class:`.postgresql.INTERVAL`
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 19 Nov 2015 20:10:46 +0000 (15:10 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 19 Nov 2015 20:11:37 +0000 (15:11 -0500)
commit9ed36c2eed34b23560abe3cdf373c720b24d3b30
treee387738957531c49c24745158884847ee837ee83
parentc7f9aa281857eeeaf7963c370bda43d2eb4746f5
- Fixed the ``.python_type`` attribute of :class:`.postgresql.INTERVAL`
to return ``datetime.timedelta`` in the same way as that of
:obj:`.types.Interval.python_type`, rather than raising
``NotImplementedError``.
fixes #3571

(cherry picked from commit 29d6f6e19b014bb5ce79032bd8803e32b4da0e5e)
doc/build/changelog/changelog_10.rst
lib/sqlalchemy/dialects/postgresql/base.py
test/dialect/postgresql/test_types.py