]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Spelling fixes
authorVille Skyttä <ville.skytta@iki.fi>
Mon, 8 Aug 2016 13:39:15 +0000 (16:39 +0300)
committerVille Skyttä <ville.skytta@iki.fi>
Mon, 8 Aug 2016 13:39:15 +0000 (16:39 +0300)
20 files changed:
doc/build/changelog/changelog_01.rst
doc/build/changelog/changelog_06.rst
doc/build/changelog/changelog_09.rst
doc/build/changelog/changelog_10.rst
doc/build/changelog/migration_09.rst
doc/build/changelog/migration_10.rst
doc/build/glossary.rst
doc/build/orm/extensions/baked.rst
doc/build/orm/loading_relationships.rst
doc/build/orm/session_events.rst
doc/build/orm/session_state_management.rst
lib/sqlalchemy/dialects/mssql/base.py
lib/sqlalchemy/dialects/oracle/base.py
lib/sqlalchemy/dialects/postgresql/array.py
lib/sqlalchemy/dialects/postgresql/pg8000.py
lib/sqlalchemy/orm/events.py
lib/sqlalchemy/sql/schema.py
test/orm/test_expire.py
test/orm/test_unitofworkv2.py
test/sql/test_compiler.py

index a8ce578f5c5f5e134e9b7714ae78a09a863dd119..b0d95d45c96dab5d930793346702195129d9e049 100644 (file)
       added 'version_id' keyword argument to mapper. this keyword should reference a
       Column object with type Integer, preferably non-nullable, which will be used on
       the mapped table to track version numbers. this number is incremented on each
-      save operation and is specifed in the UPDATE/DELETE conditions so that it
+      save operation and is specified in the UPDATE/DELETE conditions so that it
       factors into the returned row count, which results in a ConcurrencyError if the
       value received is not the expected count.
 
index 927aae21d0341bc59d21b05b900e271296da6cae..168dac93c46df110ce7af8f15cc8a748c1980368 100644 (file)
       changed to StaleDataError, and descriptive
       error messages have been revised to reflect
       exactly what the issue is.   Both names will
-      remain available for the forseeable future
+      remain available for the foreseeable future
       for schemes that may be specifying
       ConcurrentModificationError in an "except:"
       clause.
index 3ac0ab0b4dc2e45c5b6de22c9e79992d58931b52..008427584a1096c504e7dd3f74edc745ab5a36c3 100644 (file)
         Fixed an 0.9 regression where ORM instance or mapper events applied
         to a base class such as a declarative base with the propagate=True
         flag would fail to apply to existing mapped classes which also
-        used inheritance due to an assertion.  Addtionally, repaired an
+        used inheritance due to an assertion.  Additionally, repaired an
         attribute error which could occur during removal of such an event,
         depending on how it was first assigned.
 
         adaptation which goes on has been made more robust, such that if a descriptor
         returns another instrumented attribute, rather than a compound SQL
         expression element, the operation will still proceed.
-        Addtionally, the "adapted" operator will retain its class; previously,
+        Additionally, the "adapted" operator will retain its class; previously,
         a change in class from ``InstrumentedAttribute`` to ``QueryableAttribute``
         (a superclass) would interact with Python's operator system such that
         an expression like ``aliased(MyClass.x) > MyClass.x`` would reverse itself
index 16a38e662632fb4ce95b1271a614d7bddad47366..65a27d73ab9191eebf5dbca6be83ddd373354f48 100644 (file)
@@ -57,7 +57,7 @@
         :versions: 1.1.0b3
 
         Fixed bug in :paramref:`.Select.with_for_update.of`, where the Oracle
-        "rownum" approach to LIMIT/OFFSET would fail to accomodate for the
+        "rownum" approach to LIMIT/OFFSET would fail to accommodate for the
         expressions inside the "OF" clause, which must be stated at the topmost
         level referring to expression within the subquery.  The expressions are
         now added to the subquery if needed.
         :tickets: 3690
 
         Fixed bug where when using ``case_sensitive=False`` with an
-        :class:`.Engine`, the result set would fail to correctly accomodate
+        :class:`.Engine`, the result set would fail to correctly accommodate
         for duplicate column names in the result set, causing an error
         when the statement is executed in 1.0, and preventing the
         "ambiguous column" exception from functioning in 1.1.
         pool of only a single connection were used, this means the pool would
         be fully checked out until that stack trace were freed.  This mostly
         impacts very specific debugging scenarios and is unlikely to have been
-        noticable in any production application.  The fix applies an
+        noticeable in any production application.  The fix applies an
         explicit checkin of the record before re-raising the caught exception.
 
 
 
         Fixed bug where the truncation of long labels in SQL could produce
         a label that overlapped another label that is not truncated; this
-        because the length threshhold for truncation was greater than
+        because the length threshold for truncation was greater than
         the portion of the label that remains after truncation.  These
         two values have now been made the same; label_length - 6.
         The effect here is that shorter column labels will be "truncated"
         The Postgresql :class:`.postgresql.ENUM` type will emit a
         DROP TYPE instruction when a plain ``table.drop()`` is called,
         assuming the object is not associated directly with a
-        :class:`.MetaData` object.   In order to accomodate the use case of
+        :class:`.MetaData` object.   In order to accommodate the use case of
         an enumerated type shared between multiple tables, the type should
         be associated directly with the :class:`.MetaData` object; in this
         case the type will only be created at the metadata level, or if
index fef03065afc025c1c4581cebb905656995d045ed..7d673c537cefb5bb44c991d951c8d653002ad0d6 100644 (file)
@@ -1459,7 +1459,7 @@ The typing system now handles the task of rendering "literal bind" values
 
 A new method is added to :class:`.TypeEngine` :meth:`.TypeEngine.literal_processor`
 as well as :meth:`.TypeDecorator.process_literal_param` for :class:`.TypeDecorator`
-which take on the task of rendering so-called "inline literal paramters" - parameters
+which take on the task of rendering so-called "inline literal parameters" - parameters
 that normally render as "bound" values, but are instead being rendered inline
 into the SQL statement due to the compiler configuration.  This feature is used
 when generating DDL for constructs such as :class:`.CheckConstraint`, as well
index e68f9077460c41af931c048f9ef4cd6bafb67c9b..f539d8b94479567148db9d0dee2b433fb8674679 100644 (file)
@@ -64,7 +64,7 @@ straightforward construction an invocation of :class:`.Query` objects
 using caching, which upon successive calls features vastly reduced
 Python function call overhead (over 75%).    By  specifying a
 :class:`.Query` object as a series of lambdas which are only invoked
-once, a query as a pre-compiled unit begins to be feasable::
+once, a query as a pre-compiled unit begins to be feasible::
 
     from sqlalchemy.ext import baked
     from sqlalchemy import bindparam
@@ -634,7 +634,7 @@ does not support ALTER, in the case that during a DROP, the given tables have
 an unresolvable cycle; in this case a warning is emitted, and the tables
 are dropped with **no** ordering, which is usually fine on SQLite unless
 constraints are enabled. To resolve the warning and proceed with at least
-a partial ordering on a SQLite database, particuarly one where constraints
+a partial ordering on a SQLite database, particularly one where constraints
 are enabled, re-apply "use_alter" flags to those
 :class:`.ForeignKey` and :class:`.ForeignKeyConstraint` objects which should
 be explicitly omitted from the sort.
@@ -1073,7 +1073,7 @@ it emits SQL resembling::
     (None,)
 
 Note above, there is a comparison ``WHERE ? = address.user_id`` where the
-bound value ``?`` is receving ``None``, or ``NULL`` in SQL.  **This will
+bound value ``?`` is receiving ``None``, or ``NULL`` in SQL.  **This will
 always return False in SQL**.  The comparison here would in theory
 generate SQL as follows::
 
@@ -1663,7 +1663,7 @@ joined eager loading is now dropped in this case::
     LIMIT :param_1
 
 In the case that the LEFT OUTER JOIN returns more than one row, the ORM
-has always emitted a warning here and ignored addtional results for
+has always emitted a warning here and ignored additional results for
 ``uselist=False``, so the results in that error situation should not change.
 
 :ticket:`3249`
@@ -2234,7 +2234,7 @@ corresponding to :meth:`.Table.create` and :meth:`.Table.drop`::
     table.drop(engine)  # will emit DROP TABLE and DROP TYPE - new for 1.0
 
 This means that if a second table also has an enum named 'myenum', the
-above DROP operation will now fail.    In order to accomodate the use case
+above DROP operation will now fail.    In order to accommodate the use case
 of a common shared enumerated type, the behavior of a metadata-associated
 enumeration has been enhanced.
 
index 02cdd14a8ad9c1ba6bfbc148bb97132fc7d1bee3..57865646577f1db7ad1fd476b9e22981ab705efd 100644 (file)
@@ -592,7 +592,7 @@ Glossary
         for INSERT and UPDATE statements and "OUTPUT DELETED" for DELETE statements;
         the key caveat is that triggers are not supported in conjunction with this
         keyword.  On Oracle, it is known as "RETURNING...INTO", and requires that the
-        value be placed into an OUT paramter, meaning not only is the syntax awkward,
+        value be placed into an OUT parameter, meaning not only is the syntax awkward,
         but it can also only be used for one row at a time.
 
         SQLAlchemy's :meth:`.UpdateBase.returning` system provides a layer of abstraction
index 83cee51dace5bae29b4b4234d071ed725d0b0612..1dd875a86400c1abbc7c60a6ebec247eee7bcace 100644 (file)
@@ -16,7 +16,7 @@ occur **once**, rather than for each time that query is built up and executed.
 The rationale for this system is to greatly reduce Python interpreter
 overhead for everything that occurs **before the SQL is emitted**.
 The caching of the "baked" system does **not** in any way reduce SQL calls or
-cache the **return results** from the database.  A technique that demonstates
+cache the **return results** from the database.  A technique that demonstrates
 the caching of the SQL calls and result sets themselves is available in
 :ref:`examples_caching`.
 
index 941edce2c41f5c998504c0cbfd173b7187e7296b..bfc5b669e1ba554ff99b7a7dc6f90f83528fbc23 100644 (file)
@@ -447,7 +447,7 @@ option. This option is used in the same manner as the
 :func:`~sqlalchemy.orm.joinedload()` option except it is assumed that the
 :class:`~sqlalchemy.orm.query.Query` will specify the appropriate joins
 explicitly. Below, we specify a join between ``User`` and ``Address``
-and addtionally establish this as the basis for eager loading of ``User.addresses``::
+and additionally establish this as the basis for eager loading of ``User.addresses``::
 
     class User(Base):
         __tablename__ = 'user'
@@ -614,7 +614,7 @@ an extra SELECT::
     FROM a
     WHERE ? = a.b_id
 
-This SELECT is redundant becasue ``b.a`` is the same value as ``a1``.  We
+This SELECT is redundant because ``b.a`` is the same value as ``a1``.  We
 can create an on-load rule to populate this for us::
 
     from sqlalchemy import event
index 27e17717f3bc5d3ea4c81bf6c84d319cb9f6fe91..f3ab57e59913b6b9976c760162863b21918dc906 100644 (file)
@@ -260,7 +260,7 @@ Loaded as Persistent
 
 Objects can appear in the :class:`.Session` directly in the :term:`persistent`
 state when they are loaded from the database.   Tracking this state transition
-is synonymous with tracking objects as they are loaded, and is synonomous
+is synonymous with tracking objects as they are loaded, and is synonymous
 with using the :meth:`.InstanceEvents.load` instance-level event.  However, the
 :meth:`.SessionEvents.loaded_as_persistent` event is provided as a
 session-centric hook for intercepting objects as they enter the persistent
index 40d6295dfe69eca8dc7abaf872a78cee7470bc2e..e825568e51a14d250df482cc89833fda09efc9b3 100644 (file)
@@ -131,7 +131,7 @@ referenced. These collections can be associated with a
 :class:`.Session`, if desired, by placing them into the
 :attr:`.Session.info` dictionary.
 
-An event based approach is also feasable.  A simple recipe that provides
+An event based approach is also feasible.  A simple recipe that provides
 "strong referencing" behavior for all objects as they remain within
 the :term:`persistent` state is as follows::
 
index d1c7452a177db1c174470ba13ed6fc77053b2e28..20b812731be28cd945c63e54257044f1f038e96b 100644 (file)
@@ -164,7 +164,7 @@ how SQLAlchemy handles this:
 
 
 This
-is an auxilliary use case suitable for testing and bulk insert scenarios.
+is an auxiliary use case suitable for testing and bulk insert scenarios.
 
 MAX on VARCHAR / NVARCHAR
 -------------------------
index a68e2d7ca2df693b016bf3daf7aa3950df7e1f86..609a1da56e63e0b5d7b8df0f76ba8282f855ac75 100644 (file)
@@ -754,7 +754,7 @@ class OracleCompiler(compiler.SQLCompiler):
                 limitselect._oracle_visit = True
                 limitselect._is_wrapper = True
 
-                # add expressions to accomodate FOR UPDATE OF
+                # add expressions to accommodate FOR UPDATE OF
                 for_update = select._for_update_arg
                 if for_update is not None and for_update.of:
                     for_update = for_update._clone()
index 8d811aa55c11dfc6b377ff0e81d7b11e4a545878..af8950ac6fc67ac74ac1133b122a11c2dafb25e6 100644 (file)
@@ -19,7 +19,7 @@ except ImportError:
 def Any(other, arrexpr, operator=operators.eq):
     """A synonym for the :meth:`.ARRAY.Comparator.any` method.
 
-    This method is legacy and is here for backwards-compatiblity.
+    This method is legacy and is here for backwards-compatibility.
 
     .. seealso::
 
@@ -33,7 +33,7 @@ def Any(other, arrexpr, operator=operators.eq):
 def All(other, arrexpr, operator=operators.eq):
     """A synonym for the :meth:`.ARRAY.Comparator.all` method.
 
-    This method is legacy and is here for backwards-compatiblity.
+    This method is legacy and is here for backwards-compatibility.
 
     .. seealso::
 
index 9daab5851916ec6214076f9f48067d82a3d3ff5f..34d11afe5f010f0ff034d2481457ba6da32e54e0 100644 (file)
@@ -28,7 +28,7 @@ Typically, this can be changed to ``utf-8``, as a more useful default::
                                  # encoding
     client_encoding = utf8
 
-The ``client_encoding`` can be overriden for a session by executing the SQL:
+The ``client_encoding`` can be overridden for a session by executing the SQL:
 
 SET CLIENT_ENCODING TO 'utf8';
 
index fa0d84f31bc0221294bcbd976d558a1ca487116e..e487dd88da02c89ed2378668c089f01e7c800a55 100644 (file)
@@ -1629,7 +1629,7 @@ class SessionEvents(event.Events):
         """
 
     def loaded_as_persistent(self, session, instance):
-        """Intercept the "loaded as peristent" transition for a specific object.
+        """Intercept the "loaded as persistent" transition for a specific object.
 
         This event is invoked within the ORM loading process, and is invoked
         very similarly to the :meth:`.InstanceEvents.load` event.  However,
index 457259d617cd76cddfba6e49989c919e836dc429..e364b2e7f28fadbaf4d6791a98532cec3fd2534f 100644 (file)
@@ -980,7 +980,7 @@ class Column(SchemaItem, ColumnClause):
 
           * Part of the primary key
 
-          * Not refering to another column via :class:`.ForeignKey`, unless
+          * Not referring to another column via :class:`.ForeignKey`, unless
             the value is specified as ``'ignore_fk'``::
 
                 # turn on autoincrement for this column despite
index 63341abeca51a821c05a02f33f96fe76ec92a722..158957ebb53bb6009081367d9af4eed4d24a005a 100644 (file)
@@ -558,7 +558,7 @@ class ExpireTest(_fixtures.FixtureTest):
         # fires off to load "addresses", but needs foreign key or primary key
         # attributes in order to lazy load; hits those attributes, such as
         # below it hits "u.id".  "u.id" triggers full unexpire operation,
-        # joinedloads addresses since lazy='joined'.  this is all wihtin lazy load
+        # joinedloads addresses since lazy='joined'.  this is all within lazy load
         # which fires unconditionally; so an unnecessary joinedload (or
         # lazyload) was issued.  would prefer not to complicate lazyloading to
         # "figure out" that the operation should be aborted right now.
@@ -1228,7 +1228,7 @@ class LifecycleTest(fixtures.MappedTest):
 
         # we didn't insert a value for 'data',
         # so its not in dict, but also when we hit it, it isn't
-        # expired because there's no column default on it or anyhting like that
+        # expired because there's no column default on it or anything like that
         assert 'data' not in d1.__dict__
         def go():
             eq_(d1.data, None)
index bfc050e35a49c2b379e3206dd2d29c273a13fc90..ae8454f6f3d47ce6ad351e05ef15a13975349f49 100644 (file)
@@ -1395,7 +1395,7 @@ class RowswitchM2OTest(fixtures.MappedTest):
 
     def test_set_none_replaces_scalar(self):
         # this case worked before #3060, because a straight scalar
-        # set of None shows up.  Howver, as test_set_none_w_get
+        # set of None shows up.  However, as test_set_none_w_get
         # shows, we can't rely on this - the get of None will blow
         # away the history.
         A, B, C = self._fixture()
index 27cab65acfe34493d76a0ad63d63fbacf4bd5639..a0db9864ec702a5855c6722fff33d3aa49017da8 100644 (file)
@@ -2147,7 +2147,7 @@ class SelectTest(fixtures.TestBase, AssertsCompiledSQL):
                 'CAST(%s AS %s)' % (literal, expected_results[4]))
 
             # fixme: shoving all of this dialect-specific stuff in one test
-            # is now officialy completely ridiculous AND non-obviously omits
+            # is now officially completely ridiculous AND non-obviously omits
             # coverage on other dialects.
             sel = select([tbl, cast(tbl.c.v1, Numeric)]).compile(
                 dialect=dialect)