(self)
| 189 | ) |
| 190 | |
| 191 | def test_insert_hint(self): |
| 192 | t = table("sometable", column("somecolumn")) |
| 193 | for targ in (None, t): |
| 194 | for darg in ("*", "mssql"): |
| 195 | self.assert_compile( |
| 196 | t.insert() |
| 197 | .values(somecolumn="x") |
| 198 | .with_hint( |
| 199 | "WITH (PAGLOCK)", selectable=targ, dialect_name=darg |
| 200 | ), |
| 201 | "INSERT INTO sometable WITH (PAGLOCK) " |
| 202 | "(somecolumn) VALUES (:somecolumn)", |
| 203 | ) |
| 204 | |
| 205 | def test_update_hint(self): |
| 206 | t = table("sometable", column("somecolumn")) |