(self)
| 4055 | ) |
| 4056 | |
| 4057 | def test_adapt(self): |
| 4058 | t = table("t", column("c")) |
| 4059 | s = select(t).with_for_update(read=True, of=t.c.c) |
| 4060 | a = t.alias() |
| 4061 | s2 = sql_util.ClauseAdapter(a).traverse(s) |
| 4062 | eq_(s2._for_update_arg.of, [a.c.c]) |
| 4063 | self.assert_compile( |
| 4064 | s2, |
| 4065 | "SELECT t_1.c FROM t AS t_1 FOR SHARE OF t_1", |
| 4066 | dialect="postgresql", |
| 4067 | ) |
| 4068 | |
| 4069 | |
| 4070 | class AliasTest(fixtures.TestBase, AssertsCompiledSQL): |
nothing calls this directly
no test coverage detected