]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Merge pull request #18 from davidjb/patch-1
authormike bayer <mike_mp@zzzcomputing.com>
Fri, 19 Jul 2013 15:37:27 +0000 (08:37 -0700)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 19 Jul 2013 15:58:22 +0000 (11:58 -0400)
Minor hybrid extension documentation update

lib/sqlalchemy/ext/hybrid.py

index 98da5ad36682199a3d50191853e674d195d5624d..b7f1f88a0aadf947e45b680b11c5140f81d6b813 100644 (file)
@@ -229,7 +229,7 @@ mapping which relates a ``User`` to a ``SavingsAccount``::
                 account = Account(owner=self)
             else:
                 account = self.accounts[0]
-            account.balance = balance
+            account.balance = value
 
         @balance.expression
         def balance(cls):
@@ -269,7 +269,7 @@ Correlated Subquery Relationship Hybrid
 
 We can, of course, forego being dependent on the enclosing query's usage
 of joins in favor of the correlated subquery, which can portably be packed
-into a single colunn expression. A correlated subquery is more portable, but
+into a single column expression. A correlated subquery is more portable, but
 often performs more poorly at the SQL level. Using the same technique
 illustrated at :ref:`mapper_column_property_sql_expressions`,
 we can adjust our ``SavingsAccount`` example to aggregate the balances for