]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Support Postgresql INTERVAL fields spec/reflection
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 5 Apr 2017 16:55:39 +0000 (12:55 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 5 Apr 2017 17:55:10 +0000 (13:55 -0400)
commitb39b6023c57b25c00bbed946a83bc44c36d52940
treec6de96541c9c79a076091b66a53dcecfbcd8b965
parent06a90199c56b612dec0c318fbc775ad4edc091a5
Support Postgresql INTERVAL fields spec/reflection

Added support for all possible "fields" identifiers when reflecting the
Postgresql ``INTERVAL`` datatype, e.g. "YEAR", "MONTH", "DAY TO
MINUTE", etc..   In addition, the :class:`.postgresql.INTERVAL`
datatype itself now includes a new parameter
:paramref:`.postgresql.INTERVAL.fields` where these qualifiers can be
specified; the qualifier is also reflected back into the resulting
datatype upon reflection / inspection.

Change-Id: I33816e68c533b023e0632db6f4e73fefd2de4721
Fixes: #3959
doc/build/changelog/changelog_12.rst
doc/build/changelog/migration_12.rst
lib/sqlalchemy/dialects/postgresql/base.py
test/dialect/postgresql/test_reflection.py