]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Merge "Enhance "raise" strategy to include "raise_on_sql" option"
authormike bayer <mike_mp@zzzcomputing.com>
Tue, 4 Oct 2016 20:48:08 +0000 (16:48 -0400)
committerGerrit Code Review <gerrit2@ln3.zzzcomputing.com>
Tue, 4 Oct 2016 20:48:08 +0000 (16:48 -0400)
1  2 
doc/build/changelog/changelog_11.rst
doc/build/changelog/migration_11.rst
lib/sqlalchemy/orm/strategies.py

index c8731601c835d24429560ade7f9d8e221d3f0955,6e2fc014ce4e6253343d3fb01b21a5b116a462dc..c5be9c7c257186021421bb234a6e38daf53730ef
  .. changelog::
      :version: 1.1.0
  
+     .. change::
+         :tags: feature, orm
+         :tickets: 3812
+         Enhanced the new "raise" lazy loader strategy to also include a
+         "raise_on_sql" variant, available both via :paramref:`.orm.relationship.lazy`
+         as well as :func:`.orm.raiseload`.   This variant only raises if the
+         lazy load would actually emit SQL, vs. raising if the lazy loader
+         mechanism is invoked at all.
 +    .. change::
 +        :tags: bug, orm
 +        :tickets: 3811
 +
 +        Made an adjustment to the bug fix first introduced in [ticket:3431]
 +        that involves an object appearing in multiple contexts in a single
 +        result set, such that an eager loader that would set the related
 +        object value to be None will still fire off, thus satisfying the
 +        load of that attribute.  Previously, the adjustment only honored
 +        a non-None value arriving for an eagerly loaded attribute in a
 +        secondary row.
 +
      .. change::
          :tags: bug, orm
          :tickets: 3808
Simple merge
Simple merge