MCPcopy Create free account
hub / github.com/zzzeek/sqlalchemy / test_array_literal

Method test_array_literal

test/dialect/postgresql/test_compiler.py:2190–2205  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2188 self.assert_compile(postgresql.array([], type_=type_), expected)
2189
2190 def test_array_literal(self):
2191 self.assert_compile(
2192 func.array_dims(
2193 postgresql.array([1, 2]) + postgresql.array([3, 4, 5])
2194 ),
2195 "array_dims(ARRAY[%(param_1)s::INTEGER, %(param_2)s::INTEGER] ||"
2196 " ARRAY[%(param_3)s::INTEGER, %(param_4)s::INTEGER,"
2197 " %(param_5)s::INTEGER])",
2198 checkparams={
2199 "param_5": 5,
2200 "param_4": 4,
2201 "param_1": 1,
2202 "param_3": 3,
2203 "param_2": 2,
2204 },
2205 )
2206
2207 def test_array_literal_compare(self):
2208 self.assert_compile(

Callers

nothing calls this directly

Calls 2

assert_compileMethod · 0.80
arrayMethod · 0.80

Tested by

no test coverage detected