]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Accept FetchedValue, text() for column "default" value
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 1 Feb 2017 21:25:31 +0000 (16:25 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 1 Feb 2017 22:00:42 +0000 (17:00 -0500)
commit388d8db68d0db6f38e72d60386023c9eef263034
tree1deae94a0a2c8ac4a066da157ee6c36ecfc409ce
parent9a5943bf76cd436484a85a6d9478507c9bac3b08
Accept FetchedValue, text() for column "default" value

Fixed bug whereby the :meth:`.DDLEvents.column_reflect` event would not
allow a non-textual expression to be passed as the value of the
"default" for the new column, such as a :class:`.FetchedValue`
object to indicate a generic triggered default or a
:func:`.sql.expression.text` construct.  Clarified the documentation
in this regard as well.

Fixes: #3905
Change-Id: I829796c3e9f87f375149bebee7eef133a6876d4d
doc/build/changelog/changelog_11.rst
lib/sqlalchemy/engine/reflection.py
lib/sqlalchemy/events.py
test/engine/test_reflection.py