]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
implement literal stringification for arrays
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 15 Jun 2022 16:42:44 +0000 (12:42 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 15 Jun 2022 18:32:53 +0000 (14:32 -0400)
commit46c0fa56e904f6a00e56343302c4cb39955fa038
tree7417ab317303299916ed7f2a6843bc5ce5e1634a
parent6d889b03dcd42b531001aeec2737949dca41d6d8
implement literal stringification for arrays

as we already implement stringification for the contents,
provide a bracketed syntax for default and ARRAY literal
for PG specifically.   ARRAY literal seems much simpler to
render than their quoted syntax which requires double quotes
for strings.

also open up testing for pg8000 which has likely been
fine with arrays for awhile now, bump the version pin
also.

Fixes: #8138
Change-Id: Id85b052b0a9564d6aa1489160e58b7359f130fdd
doc/build/changelog/unreleased_20/8138.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/array.py
lib/sqlalchemy/sql/sqltypes.py
lib/sqlalchemy/testing/suite/test_types.py
setup.cfg
test/dialect/postgresql/test_types.py
test/requirements.py
test/sql/test_types.py