]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
add backend agnostic UUID datatype
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 11 Feb 2022 09:54:45 +0000 (04:54 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 1 Jun 2022 15:40:56 +0000 (11:40 -0400)
commit349a7c5e0e2aeeac98fad789b0043a4bdfeed837
tree20c314304023752e4cd7bc7894f042cc7b9d7064
parent4fb6aca6cfc593c64cd7102cd70924d1b7caea05
add backend agnostic UUID datatype

Added new backend-agnostic :class:`_types.Uuid` datatype generalized from
the PostgreSQL dialects to now be a core type, as well as migrated
:class:`_types.UUID` from the PostgreSQL dialect. Thanks to Trevor Gross
for the help on this.

also includes:

* corrects some missing behaviors in the suite literal fixtures
  test where row round trips weren't being correctly asserted.
* fixes some of the ISO literal date rendering added in
  952383f9ee0 for #5052 to truncate datetime strings for date/time
  datatypes in the same way that drivers typically do for bound
  parameters; this was not working fully and wasn't caught by the
  broken test fixture

Fixes: #7212
Change-Id: I981ac6d34d278c18281c144430a528764c241b04
33 files changed:
.gitignore
doc/build/changelog/unreleased_20/7212.rst [new file with mode: 0644]
doc/build/changelog/unreleased_20/7225.rst
doc/build/core/type_basics.rst
doc/build/dialects/postgresql.rst
lib/sqlalchemy/__init__.py
lib/sqlalchemy/dialects/mssql/base.py
lib/sqlalchemy/dialects/mysql/base.py
lib/sqlalchemy/dialects/oracle/base.py
lib/sqlalchemy/dialects/oracle/cx_oracle.py
lib/sqlalchemy/dialects/postgresql/_psycopg_common.py
lib/sqlalchemy/dialects/postgresql/asyncpg.py
lib/sqlalchemy/dialects/postgresql/base.py
lib/sqlalchemy/dialects/postgresql/pg8000.py
lib/sqlalchemy/dialects/postgresql/psycopg.py
lib/sqlalchemy/dialects/postgresql/psycopg2.py
lib/sqlalchemy/engine/default.py
lib/sqlalchemy/engine/interfaces.py
lib/sqlalchemy/sql/_elements_constructors.py
lib/sqlalchemy/sql/coercions.py
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/elements.py
lib/sqlalchemy/sql/sqltypes.py
lib/sqlalchemy/sql/type_api.py
lib/sqlalchemy/testing/requirements.py
lib/sqlalchemy/testing/schema.py
lib/sqlalchemy/testing/suite/test_types.py
lib/sqlalchemy/types.py
test/dialect/mssql/test_types.py
test/dialect/postgresql/test_types.py
test/orm/declarative/test_typed_mapping.py
test/requirements.py
test/sql/test_types.py