Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

[Bugfix] Fixed an issue with UUID type queries in MySQL databases (#28941)

carribean369892634d30
diff --git a/api/models/types.py b/api/models/types.py
index 75dc495fedc..f8369dab9e5 100644
--- a/api/models/types.py
+++ b/api/models/types.py
@@ -19,7 +19,7 @@ class StringUUID(TypeDecorator[uuid.UUID | str | None]):
def process_bind_param(self, value: uuid.UUID | str | None, dialect: Dialect) -> str | None:
if value is None:
return value
- elif dialect.name == "postgresql":
+ elif dialect.name in ["postgresql", "mysql"]:
return str(value)
else:
if isinstance(value, uuid.UUID):