1. Michael Bayer
  2. sqlalchemy
  3. Issues


Issue #3036 resolved

Select.with_hint() documentation flaw

Kent Bower
created an issue

The documentation for Select.with_hint() method gives two Oracle examples with the "+ " included as the passed text argument, but sqlalchemy generates that part of the hint automatically.

So, contrary to the docs, using

 select([mytable]).with_hint(mytable, "+ index(%(name)s ix_mytable)")

Actually renders:

SELECT /*+ + index(mytable ix_mytable) */

Docs should remove the leading "+ " in both places.

Comments (9)

  1. Log in to comment