]> 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:32 +0000 (15:31 -0400)
fixes #3036

lib/sqlalchemy/sql/selectable.py

index ca3e36aab708e39002be3ad078deea5a4f61e251..63450c966a34ca0f94f5c472c17953f1e5de9581 100644 (file)
@@ -2435,7 +2435,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::
 
@@ -2446,8 +2446,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')
 
         """