(self, identity_args, text)
| 61 | (dict(cycle=True), "BY DEFAULT AS IDENTITY (CYCLE)"), |
| 62 | ) |
| 63 | def test_create_ddl(self, identity_args, text): |
| 64 | if getattr( |
| 65 | self, "__dialect__", None |
| 66 | ) != "default_enhanced" and testing.against("oracle"): |
| 67 | text = text.replace("NO MINVALUE", "NOMINVALUE") |
| 68 | text = text.replace("NO MAXVALUE", "NOMAXVALUE") |
| 69 | text = text.replace("NO CYCLE", "NOCYCLE") |
| 70 | |
| 71 | t = Table( |
| 72 | "foo_table", |
| 73 | MetaData(), |
| 74 | Column("foo", Integer(), Identity(**identity_args)), |
| 75 | ) |
| 76 | self.assert_compile( |
| 77 | CreateTable(t), |
| 78 | "CREATE TABLE foo_table (foo INTEGER GENERATED %s)" % text, |
| 79 | ) |
| 80 | t2 = t.to_metadata(MetaData()) |
| 81 | self.assert_compile( |
| 82 | CreateTable(t2), |
| 83 | "CREATE TABLE foo_table (foo INTEGER GENERATED %s)" % text, |
| 84 | ) |
| 85 | |
| 86 | def test_other_options(self): |
| 87 | t = Table( |
nothing calls this directly
no test coverage detected