]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- apply patches to correct for + sign in with_hint() docs,
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 10 Oct 2014 19:31:07 +0000 (15:31 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 10 Oct 2014 19:31:07 +0000 (15:31 -0400)
fixes #3036

lib/sqlalchemy/sql/selectable.py

index b4df87e5435a6e33268c95d1d2378285726fcae2..8198a673384b8638e1bf15b8144c0a5522f88f80 100644 (file)
@@ -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::