MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_literal_binds_pgarray

Method test_literal_binds_pgarray

test/sql/test_defaults.py:119–130  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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
133class DefaultObjectTest(fixtures.TestBase):

Callers

nothing calls this directly

Calls 7

MetaDataClass · 0.90
TableClass · 0.90
ColumnClass · 0.90
ARRAYClass · 0.90
arrayClass · 0.90
CreateTableClass · 0.85
assert_compileMethod · 0.80

Tested by

no test coverage detected