diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-02-11 04:54:45 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-06-01 11:40:56 -0400 |
commit | 349a7c5e0e2aeeac98fad789b0043a4bdfeed837 (patch) | |
tree | 20c314304023752e4cd7bc7894f042cc7b9d7064 /lib/sqlalchemy/sql/_elements_constructors.py | |
parent | 4fb6aca6cfc593c64cd7102cd70924d1b7caea05 (diff) | |
download | sqlalchemy-349a7c5e0e2aeeac98fad789b0043a4bdfeed837.tar.gz |
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
Diffstat (limited to 'lib/sqlalchemy/sql/_elements_constructors.py')
-rw-r--r-- | lib/sqlalchemy/sql/_elements_constructors.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/_elements_constructors.py b/lib/sqlalchemy/sql/_elements_constructors.py index 8aa8f12cc..f6dd92865 100644 --- a/lib/sqlalchemy/sql/_elements_constructors.py +++ b/lib/sqlalchemy/sql/_elements_constructors.py @@ -390,7 +390,7 @@ def not_(clause: _ColumnExpressionArgument[_T]) -> ColumnElement[_T]: def bindparam( key: Optional[str], value: Any = _NoArg.NO_ARG, - type_: Optional[TypeEngine[_T]] = None, + type_: Optional[_TypeEngineArgument[_T]] = None, unique: bool = False, required: Union[bool, Literal[_NoArg.NO_ARG]] = _NoArg.NO_ARG, quote: Optional[bool] = None, |