(self)
| 5849 | ) |
| 5850 | |
| 5851 | def test_statement_hints(self): |
| 5852 | User = self.classes.User |
| 5853 | |
| 5854 | sess = fixture_session() |
| 5855 | stmt = ( |
| 5856 | sess.query(User) |
| 5857 | .with_statement_hint("test hint one") |
| 5858 | .with_statement_hint("test hint two") |
| 5859 | .with_statement_hint("test hint three", "postgresql") |
| 5860 | ) |
| 5861 | |
| 5862 | self.assert_compile( |
| 5863 | stmt, |
| 5864 | "SELECT users.id AS users_id, users.name AS users_name " |
| 5865 | "FROM users test hint one test hint two", |
| 5866 | ) |
| 5867 | |
| 5868 | self.assert_compile( |
| 5869 | stmt, |
| 5870 | "SELECT users.id AS users_id, users.name AS users_name " |
| 5871 | "FROM users test hint one test hint two test hint three", |
| 5872 | dialect="postgresql", |
| 5873 | ) |
| 5874 | |
| 5875 | |
| 5876 | class ParentTest(QueryTest, AssertsCompiledSQL): |
nothing calls this directly
no test coverage detected