diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-01-05 12:20:46 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-01-11 09:25:19 -0500 |
| commit | e215db01d48c418e190936e6b36ea49c6eb22072 (patch) | |
| tree | fc0f3144fd7404128aae44f51ea4dc79619ef4d8 /lib/sqlalchemy/sql/lambdas.py | |
| parent | f96e24013c80d933cb8171061be3d316215fe585 (diff) | |
| download | sqlalchemy-e215db01d48c418e190936e6b36ea49c6eb22072.tar.gz | |
implement second-level type resolution for literals
Added additional rule to the system that determines ``TypeEngine``
implementations from Python literals to apply a second level of adjustment
to the type, so that a Python datetime with or without tzinfo can set the
``timezone=True`` parameter on the returned :class:`.DateTime` object, as
well as :class:`.Time`. This helps with some round-trip scenarios on
type-sensitive PostgreSQL dialects such as asyncpg, psycopg3 (2.0 only).
Improved support for asyncpg handling of TIME WITH TIMEZONE, which
was not fully implemented.
Fixes: #7537
Change-Id: Icdb07db85af5f7f39f1c1ef855fe27609770094b
(cherry picked from commit 3b2e28bcb5ba32446a92b62b6862b7c11dabb592)
Diffstat (limited to 'lib/sqlalchemy/sql/lambdas.py')
0 files changed, 0 insertions, 0 deletions
