this is only a small part of the cherry-pick as the docs
have been reorganized since 0.8
(cherry picked from commit
8ae47dc6e0a98b359247040236be0810b9086f40)
Conflicts:
doc/build/changelog/changelog_10.rst
doc/build/changelog/migration_10.rst
lib/sqlalchemy/ext/declarative/base.py
(cherry picked from commit
6e7701d534141ed8c4cba668792f2bb528a5af61)
Conflicts:
doc/build/changelog/changelog_09.rst
lib/sqlalchemy/dialects/postgresql/json.py
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/sql/dml.py
lib/sqlalchemy/sql/elements.py
lib/sqlalchemy/sql/operators.py
:tags: orm
:tickets: 2122
- Some fixes to "evaulate" and "fetch" evaluation
+ Some fixes to "evaluate" and "fetch" evaluation
when query.update(), query.delete() are called.
The retrieval of records is done after autoflush
in all cases, and before update/delete is
expr1 = mycolumn > 2
bool(expr1 == expr1)
- Would evaulate as ``False``, even though this is an identity
+ Would evaluate as ``False``, even though this is an identity
comparison, because ``mycolumn > 2`` would be "grouped" before
being placed into the :class:`.BinaryExpression`, thus changing
its identity. :class:`.BinaryExpression` now keeps track
elif bind.callable:
# some ORM functions (lazy loading)
# place the bind's value as a
- # callable for deferred evaulation.
+ # callable for deferred evaluation.
value = bind.callable()
else:
# just use .value
def bool_or_str(*text):
- """Return a callable that will evaulate a string as
+ """Return a callable that will evaluate a string as
boolean, or one of a set of "alternate" string values.
"""