]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- the "passive" flag on session.is_modified()
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 18 Nov 2008 16:24:00 +0000 (16:24 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 18 Nov 2008 16:24:00 +0000 (16:24 +0000)
is correctly propagated to the attribute manager.

CHANGES
lib/sqlalchemy/orm/session.py

diff --git a/CHANGES b/CHANGES
index 6d26b26884d8ddb49592f3bc2b7d947f5f32fcf8..6734cd3114a484b595a907da7fdddc917572c81a 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -14,6 +14,9 @@ CHANGES
 
     - Query.add_column() can accept FromClause objects
       in the same manner as session.query() can.
+
+    - the "passive" flag on session.is_modified()
+      is correctly propagated to the attribute manager.
       
 - postgres
     - Calling alias.execute() in conjunction with
index 4768dab7fafba698dbc2359e7ab9fdd718bdb989..15e751cca92047472ad6cb63ccd9d71d6c524a34 100644 (file)
@@ -1464,7 +1464,7 @@ class Session(object):
         for attr in state.manager.attributes:
             if not include_collections and hasattr(attr.impl, 'get_collection'):
                 continue
-            (added, unchanged, deleted) = attr.get_history(instance)
+            (added, unchanged, deleted) = attr.get_history(instance, passive=passive)
             if added or deleted:
                 return True
         return False