(self)
| 117 | ) |
| 118 | |
| 119 | def test_literal_binds_pgarray(self): |
| 120 | m = MetaData() |
| 121 | t = Table( |
| 122 | "t", |
| 123 | m, |
| 124 | Column("x", ARRAY(Integer), server_default=array([1, 2, 3])), |
| 125 | ) |
| 126 | self.assert_compile( |
| 127 | CreateTable(t), |
| 128 | "CREATE TABLE t (x INTEGER[] DEFAULT ARRAY[1, 2, 3])", |
| 129 | dialect="postgresql", |
| 130 | ) |
| 131 | |
| 132 | |
| 133 | class DefaultObjectTest(fixtures.TestBase): |
nothing calls this directly
no test coverage detected