(self)
| 6483 | eq_(t2b.primary_key.name, "t2_pk") |
| 6484 | |
| 6485 | def test_expression_index(self): |
| 6486 | m = MetaData(naming_convention={"ix": "ix_%(column_0_label)s"}) |
| 6487 | t = Table("t", m, Column("q", Integer), Column("p", Integer)) |
| 6488 | ix = Index(None, t.c.q + 5) |
| 6489 | t.append_constraint(ix) |
| 6490 | |
| 6491 | # huh. pretty cool |
| 6492 | self.assert_compile( |
| 6493 | CreateIndex(ix), "CREATE INDEX ix_t_q ON t (q + 5)" |
| 6494 | ) |
| 6495 | |
| 6496 | |
| 6497 | class CopyDialectOptionsTest(fixtures.TestBase): |
nothing calls this directly
no test coverage detected