fix uuid column to char(36)

This commit is contained in:
collerek
2020-11-28 10:48:49 +01:00
parent 0f102d3473
commit 203c57fb2f
6 changed files with 53 additions and 27 deletions

View File

@ -30,7 +30,7 @@ class UndefinedType: # pragma no cover
Undefined = UndefinedType()
__version__ = "0.5.3"
__version__ = "0.5.4"
__all__ = [
"Integer",
"BigInteger",

View File

@ -28,7 +28,7 @@ class UUID(TypeDecorator): # pragma nocover
return ret_value
def load_dialect_impl(self, dialect: DefaultDialect) -> Any:
return dialect.type_descriptor(CHAR(32))
return dialect.type_descriptor(CHAR(36))
def process_bind_param(
self, value: Union[str, int, bytes, uuid.UUID, None], dialect: DefaultDialect