diff options
| author | mike bayer <mike_mp@zzzcomputing.com> | 2022-09-17 14:55:04 +0000 |
|---|---|---|
| committer | Gerrit Code Review <gerrit@ci3.zzzcomputing.com> | 2022-09-17 14:55:04 +0000 |
| commit | 2ba8bf01ea85a8802ab8638eee72cfc1af2b260c (patch) | |
| tree | c5f913aa8cd8e41c5d22d614edae406288129877 /test/sql/test_functions.py | |
| parent | f0bcd57f9ed76ba8d871448d821a85089f490b6c (diff) | |
| parent | 02fe382d6bfc5e8ccab6e2024a5241379a02b7e0 (diff) | |
| download | sqlalchemy-2ba8bf01ea85a8802ab8638eee72cfc1af2b260c.tar.gz | |
Merge "Improve array_agg and Array processing" into main
Diffstat (limited to 'test/sql/test_functions.py')
| -rw-r--r-- | test/sql/test_functions.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/sql/test_functions.py b/test/sql/test_functions.py index 6c00660ff..a48d42f50 100644 --- a/test/sql/test_functions.py +++ b/test/sql/test_functions.py @@ -948,11 +948,14 @@ class ReturnTypeTest(AssertsCompiledSQL, fixtures.TestBase): expr = func.array_agg(column("data", Integer)) is_(expr.type._type_affinity, ARRAY) is_(expr.type.item_type._type_affinity, Integer) + is_(expr.type.dimensions, 1) def test_array_agg_array_datatype(self): - expr = func.array_agg(column("data", ARRAY(Integer))) + col = column("data", ARRAY(Integer)) + expr = func.array_agg(col) is_(expr.type._type_affinity, ARRAY) is_(expr.type.item_type._type_affinity, Integer) + eq_(expr.type.dimensions, col.type.dimensions) def test_array_agg_array_literal_implicit_type(self): from sqlalchemy.dialects.postgresql import array, ARRAY as PG_ARRAY |
