(self)
| 4057 | __dialect__ = "default" |
| 4058 | |
| 4059 | def test_basic_clone(self): |
| 4060 | t = table("t", column("c")) |
| 4061 | s = select(t).with_for_update(read=True, of=t.c.c) |
| 4062 | s2 = visitors.ReplacingCloningVisitor().traverse(s) |
| 4063 | assert s2._for_update_arg is not s._for_update_arg |
| 4064 | eq_(s2._for_update_arg.read, True) |
| 4065 | eq_(s2._for_update_arg.of, [t.c.c]) |
| 4066 | self.assert_compile( |
| 4067 | s2, "SELECT t.c FROM t FOR SHARE OF t", dialect="postgresql" |
| 4068 | ) |
| 4069 | |
| 4070 | def test_adapt(self): |
| 4071 | t = table("t", column("c")) |
nothing calls this directly
no test coverage detected