]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Maul the evaulate & friends typo
authorPriit Laes <plaes@plaes.org>
Fri, 19 Dec 2014 16:46:16 +0000 (18:46 +0200)
committerPriit Laes <plaes@plaes.org>
Fri, 19 Dec 2014 17:32:27 +0000 (19:32 +0200)
13 files changed:
doc/build/changelog/changelog_07.rst
doc/build/changelog/changelog_08.rst
doc/build/changelog/changelog_09.rst
doc/build/changelog/changelog_10.rst
doc/build/changelog/migration_10.rst
examples/sharding/attribute_shard.py
lib/sqlalchemy/dialects/postgresql/json.py
lib/sqlalchemy/ext/declarative/base.py
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/sql/dml.py
lib/sqlalchemy/sql/elements.py
lib/sqlalchemy/sql/operators.py
lib/sqlalchemy/util/langhelpers.py

index 5504a0ad675f10a888b2f55deee8700aa9506244..e782ba93861248f562bd4c4bbd83cc8beb7b2529 100644 (file)
         :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
index 6515f731d3d18b1ada03f2c99081d11aa5f441dc..baaa7b15b2d553c7e8c57d3fa7dc06432fd3a477 100644 (file)
         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
index 4ff73c45df762dd515288f272a61a5bb4eb49a73..f92d8324b77589658f57852f811ec8f4c11bd8c4 100644 (file)
         :tags: bug, orm
         :tickets: 3117
 
-        The "evaulator" for query.update()/delete() won't work with multi-table
+        The "evaluator" for query.update()/delete() won't work with multi-table
         updates, and needs to be set to `synchronize_session=False` or
         `synchronize_session='fetch'`; a warning is now emitted.  In
         1.0 this will be promoted to a full exception.
         in an ``ORDER BY`` clause, if that label is also referred to
         in the columns clause of the select, instead of rewriting the
         full expression.  This gives the database a better chance to
-        optimize the evaulation of the same expression in two different
+        optimize the evaluation of the same expression in two different
         contexts.
 
         .. seealso::
index 4da7b94568832addba2127fd3fcb340dd7c1fb7f..efd9d51d6aa2f82bb0e515b46ecd4987d6788d89 100644 (file)
         :tags: bug, orm
         :tickets: 3117
 
-        The "evaulator" for query.update()/delete() won't work with multi-table
+        The "evaluator" for query.update()/delete() won't work with multi-table
         updates, and needs to be set to `synchronize_session=False` or
         `synchronize_session='fetch'`; this now raises an exception, with a
         message to change the synchronize setting.
index db0d270a1d59d42579a5a2b7fbda3dcab3de2adf..717f31aff03a9e7d07e8f5ece49217bbeeed0d16 100644 (file)
@@ -1010,7 +1010,7 @@ join into a subquery as a join target on SQLite.
 query.update() with ``synchronize_session='evaluate'`` raises on multi-table update
 -----------------------------------------------------------------------------------
 
-The "evaulator" for :meth:`.Query.update` won't work with multi-table
+The "evaluator" for :meth:`.Query.update` won't work with multi-table
 updates, and needs to be set to ``synchronize_session=False`` or
 ``synchronize_session='fetch'`` when multiple tables are present.
 The new behavior is that an explicit exception is now raised, with a message
index 34b1be5b21156d491f9556242ce0be7e397e6399..4ce8c247f4ea12da49af64f8c9ea22bcf6391faf 100644 (file)
@@ -168,7 +168,7 @@ def _get_query_comparisons(query):
         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
index 250bf5e9db9568d0cac382a74bbbf6804e484cd4..50176918e5bf9eef97ab0ea74cd43a8f738d1ae7 100644 (file)
@@ -77,7 +77,7 @@ class JSONElement(elements.BinaryExpression):
 
     def cast(self, type_):
         """Convert this :class:`.JSONElement` to apply both the 'astext' operator
-        as well as an explicit type cast when evaulated.
+        as well as an explicit type cast when evaluated.
 
         E.g.::
 
index 291608b6ccfc7a5043a86cbe8d1502aba0378c1c..6735abf4c2a65868fa69e8bdf4644eb54b508346 100644 (file)
@@ -278,7 +278,7 @@ class _MapperConfig(object):
             elif not isinstance(value, (Column, MapperProperty)):
                 # using @declared_attr for some object that
                 # isn't Column/MapperProperty; remove from the dict_
-                # and place the evaulated value onto the class.
+                # and place the evaluated value onto the class.
                 if not k.startswith('__'):
                     dict_.pop(k)
                     setattr(cls, k, value)
index 1afffb90e0c525515adc5bf8f961e440ed285e25..6cade322a3bba44107babf08e609527dae2350b8 100644 (file)
@@ -2788,7 +2788,7 @@ class Query(object):
               SELECT statement emitted and will significantly reduce
               performance.
 
-            * The ``'evaulate'`` strategy performs a scan of
+            * The ``'evaluate'`` strategy performs a scan of
               all matching objects within the :class:`.Session`; if the
               contents of the :class:`.Session` are expired, such as
               via a proceeding :meth:`.Session.commit` call, **this will
@@ -2885,7 +2885,7 @@ class Query(object):
               SELECT statement emitted and will significantly reduce
               performance.
 
-            * The ``'evaulate'`` strategy performs a scan of
+            * The ``'evaluate'`` strategy performs a scan of
               all matching objects within the :class:`.Session`; if the
               contents of the :class:`.Session` are expired, such as
               via a proceeding :meth:`.Session.commit` call, **this will
index 9f2ce7ce39d994cb7c3841f4c977c45661cafbe8..62169319b6a9a292b56e4396715318753a5c12c5 100644 (file)
@@ -387,7 +387,7 @@ class ValuesBase(UpdateBase):
         :func:`.mapper`.
 
         :param cols: optional list of column key names or :class:`.Column`
-         objects.  If omitted, all column expressions evaulated on the server
+         objects.  If omitted, all column expressions evaluated on the server
          are added to the returning list.
 
         .. versionadded:: 0.9.0
index 30965c80184f5b1f43885a46734f8bb5d4648816..0d49041c77864889f1ae0907f86ffe6bd69ad5b5 100644 (file)
@@ -2146,7 +2146,7 @@ class Case(ColumnElement):
           result of the ``CASE`` construct if all expressions within
           :paramref:`.case.whens` evaluate to false.  When omitted, most
           databases will produce a result of NULL if none of the "when"
-          expressions evaulate to true.
+          expressions evaluate to true.
 
 
         """
index b08e44ab87d6542f27d3b2507b1f10473a3700fb..a328b023e6e0fe30206cce01303867bd82652c00 100644 (file)
@@ -137,7 +137,7 @@ class Operators(object):
          .. versionadded:: 0.8 - added the 'precedence' argument.
 
         :param is_comparison: if True, the operator will be considered as a
-         "comparison" operator, that is which evaulates to a boolean
+         "comparison" operator, that is which evaluates to a boolean
          true/false value, like ``==``, ``>``, etc.  This flag should be set
          so that ORM relationships can establish that the operator is a
          comparison operator when used in a custom join condition.
index 5c17bea886d842f5f660d73900e254c17669fa80..ac6b50de2ec5737280de4e6d721f791140422c4c 100644 (file)
@@ -936,7 +936,7 @@ def asbool(obj):
 
 
 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.
 
     """