]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fix table reference in PostgreSQL documentation
authorMichael Williamson <mike@zwobble.org>
Sun, 28 Aug 2016 11:22:42 +0000 (12:22 +0100)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 28 Aug 2016 13:47:53 +0000 (09:47 -0400)
(cherry picked from commit 2b0fa0f8a190a65aea5a284e4f7d0a22488ae560)

lib/sqlalchemy/dialects/postgresql/base.py

index 766847c76df4073d2fc761242cf200063217b535..3266677100b6b985ab5ffdc984e323de916d5687 100644 (file)
@@ -360,7 +360,7 @@ Partial indexes add criterion to the index definition so that the index is
 applied to a subset of rows.   These can be specified on :class:`.Index`
 using the ``postgresql_where`` keyword argument::
 
-  Index('my_index', my_table.c.id, postgresql_where=tbl.c.value > 10)
+  Index('my_index', my_table.c.id, postgresql_where=my_table.c.value > 10)
 
 Operator Classes
 ^^^^^^^^^^^^^^^^^