]> 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)
committerGitHub <noreply@github.com>
Sun, 28 Aug 2016 11:22:42 +0000 (12:22 +0100)
lib/sqlalchemy/dialects/postgresql/base.py

index cc0f890dc8563ab480965582a91017e13cc238d3..09d36349fa4fda2acd93569fd3625255873c2960 100644 (file)
@@ -554,7 +554,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
 ^^^^^^^^^^^^^^^^^