Files
sqlalchemy/test/sql
Denis Laxalde cd2b95192b Cast empty PostgreSQL ARRAY from the type specified to array()
When building a PostgreSQL ``ARRAY`` literal using
:class:`_postgresql.array` with an empty ``clauses`` argument, the
:paramref:`_postgresql.array.type_` parameter is now significant in that it
will be used to render the resulting ``ARRAY[]`` SQL expression with a
cast, such as ``ARRAY[]::INTEGER``. Pull request courtesy Denis Laxalde.

Fixes: #12432
Closes: #12435
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/12435
Pull-request-sha: 9633d3c15d

Change-Id: I29ed7bd0562b82351d22de0658fb46c31cfe44f6
(cherry picked from commit 588cc6ed8e)
2025-03-19 20:19:08 -04:00
..
2021-11-24 22:51:27 -05:00
2024-02-05 19:28:22 +01:00
2023-05-09 20:23:48 -04:00
2025-02-05 14:08:58 -05:00
2024-02-05 19:28:22 +01:00
2024-02-05 19:28:22 +01:00
2025-03-05 20:43:02 +01:00