(self)
| 4044 | __dialect__ = "default" |
| 4045 | |
| 4046 | def test_basic_clone(self): |
| 4047 | t = table("t", column("c")) |
| 4048 | s = select(t).with_for_update(read=True, of=t.c.c) |
| 4049 | s2 = visitors.ReplacingCloningVisitor().traverse(s) |
| 4050 | assert s2._for_update_arg is not s._for_update_arg |
| 4051 | eq_(s2._for_update_arg.read, True) |
| 4052 | eq_(s2._for_update_arg.of, [t.c.c]) |
| 4053 | self.assert_compile( |
| 4054 | s2, "SELECT t.c FROM t FOR SHARE OF t", dialect="postgresql" |
| 4055 | ) |
| 4056 | |
| 4057 | def test_adapt(self): |
| 4058 | t = table("t", column("c")) |
nothing calls this directly
no test coverage detected