diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-10-10 15:31:07 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-10-10 15:31:07 -0400 |
commit | 3a6cdff88429e047a684c0f5d6029a30d9aaa062 (patch) | |
tree | 4c3f78e2a08a05b48e85d5540eb41c88f38a4bc2 | |
parent | be8d361be2863f1f6f71ba6269cce8594c19179c (diff) | |
download | sqlalchemy-3a6cdff88429e047a684c0f5d6029a30d9aaa062.tar.gz |
- apply patches to correct for + sign in with_hint() docs,
fixes #3036
-rw-r--r-- | lib/sqlalchemy/sql/selectable.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/sqlalchemy/sql/selectable.py b/lib/sqlalchemy/sql/selectable.py index b4df87e54..8198a6733 100644 --- a/lib/sqlalchemy/sql/selectable.py +++ b/lib/sqlalchemy/sql/selectable.py @@ -2572,7 +2572,7 @@ class Select(HasPrefixes, GenerativeSelect): following:: select([mytable]).\\ - with_hint(mytable, "+ index(%(name)s ix_mytable)") + with_hint(mytable, "index(%(name)s ix_mytable)") Would render SQL as:: @@ -2583,8 +2583,7 @@ class Select(HasPrefixes, GenerativeSelect): and Sybase simultaneously:: select([mytable]).\\ - with_hint( - mytable, "+ index(%(name)s ix_mytable)", 'oracle').\\ + with_hint(mytable, "index(%(name)s ix_mytable)", 'oracle').\\ with_hint(mytable, "WITH INDEX ix_mytable", 'sybase') .. seealso:: |