From: Mike Bayer Date: Fri, 10 Oct 2014 19:31:07 +0000 (-0400) Subject: - apply patches to correct for + sign in with_hint() docs, X-Git-Tag: rel_0_9_8~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=702166dc1abf8a34161e1f4f922872672267118c;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - apply patches to correct for + sign in with_hint() docs, fixes #3036 --- diff --git a/lib/sqlalchemy/sql/selectable.py b/lib/sqlalchemy/sql/selectable.py index ca3e36aab7..63450c966a 100644 --- a/lib/sqlalchemy/sql/selectable.py +++ b/lib/sqlalchemy/sql/selectable.py @@ -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') """