[Sqlalchemy-commits] commit/sqlalchemy: zzzeek: Check for __clause_element__() in ORM insert/update
Brought to you by:
zzzeek
From: Bitbucket <com...@bi...> - 2016-10-05 16:41:39
|
1 new commit in sqlalchemy: https://bitbucket.org/zzzeek/sqlalchemy/commits/09b685b24b19/ Changeset: 09b685b24b19 Branch: master User: zzzeek Date: 2016-10-05 16:11:53+00:00 Summary: Check for __clause_element__() in ORM insert/update ORM attributes can now be assigned any object that is has a ``__clause_element__()`` attribute, which will result in inline SQL the way any :class:`.ClauseElement` class does. This covers other mapped attributes not otherwise transformed by further expression constructs. As part of this, it was considered that we could add __clause_element__() to ClauseElement, however this causes endless loops in a "while" pattern and this pattern has been identified in third party libraries. Add a test to ensure we never make that change. Change-Id: I9e15b3f1c4883fd3909acbf7dc81d034c6e3ce1d Fixes: #3802 Affected #: 6 files Repository URL: https://bitbucket.org/zzzeek/sqlalchemy/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. |