(self)
| 6181 | ) |
| 6182 | |
| 6183 | def test_with_hint_table(self): |
| 6184 | stmt = ( |
| 6185 | select(table1) |
| 6186 | .select_from( |
| 6187 | table1.join(table2, table1.c.myid == table2.c.otherid) |
| 6188 | ) |
| 6189 | .with_hint(table1, "use some_hint") |
| 6190 | ) |
| 6191 | |
| 6192 | # note that some dialects instead use the "with_select_hint" |
| 6193 | # hook to put the 'hint' up front |
| 6194 | eq_ignore_whitespace( |
| 6195 | str(stmt), |
| 6196 | "SELECT mytable.myid, mytable.name, mytable.description " |
| 6197 | "FROM mytable [use some_hint] " |
| 6198 | "JOIN myothertable ON mytable.myid = myothertable.otherid", |
| 6199 | ) |
| 6200 | |
| 6201 | def test_with_hint_statement(self): |
| 6202 | stmt = ( |
nothing calls this directly
no test coverage detected