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