We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 367b317 commit 65b3c1dCopy full SHA for 65b3c1d
sqlmodel/main.py
@@ -51,7 +51,7 @@
51
from sqlalchemy.orm.decl_api import DeclarativeMeta
52
from sqlalchemy.orm.instrumentation import is_instrumented
53
from sqlalchemy.sql.schema import MetaData
54
-from sqlalchemy.sql.sqltypes import JSON, LargeBinary, Time
+from sqlalchemy.sql.sqltypes import JSON, LargeBinary, Time, Uuid
55
from typing_extensions import Literal, deprecated, get_origin
56
57
from ._compat import ( # type: ignore[attr-defined]
@@ -693,7 +693,7 @@ def get_sqlalchemy_type(field: Any) -> Any:
693
scale=getattr(metadata, "decimal_places", None),
694
)
695
if issubclass(type_, uuid.UUID):
696
- return GUID
+ return Uuid
697
if issubclass(type_, JSON):
698
return JSON
699
0 commit comments