Replies: 1 comment
-
A workaround will be appreciated if this is a known bug. Thanks. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Description
I hope this is enough information.
Issue:
Moving from SQLModel 0.0.8 to 0.0.13 or 0.0.16 broke the functionality of casting a list of UUIDs.
causes this error
"detail": "(psycopg2.errors.CannotCoerce) cannot cast type uuid[] to uuid
{
"detail": "(psycopg2.errors.CannotCoerce) cannot cast type uuid[] to uuid\nLINE 1: ...RRAY['edecd2c7-3fa2-4266-be3f-c7491309f8be'::uuid]::UUID) RE...\n ^\n\n[SQL: INSERT INTO analyses.tasks (session_id, created, completed, details, output_folder_uid, input_folder_uids) VALUES (%(session_id)s, %(created)s, %(completed)s, %(details)s, %(output_folder_uid)s::UUID, %(input_folder_uids)s::UUID) RETURNING analyses.tasks.id, analyses.tasks.uid]\n[parameters: {'session_id': 232, 'created': None, 'completed': None, 'details': '{"analysis_name": "TestAnalysis", "input_folders": ["edecd2c7-3fa2-4266-be3f-c7491309f8be"], "log_group_uid": "94081ca3-fd7e-46a1-881b-81247bc ... (375 characters truncated) ... blocking_storage_task_uids": ["aa3e5c6c-d38b-4d56-887e-7a024ac8f3e5"], "human_readable_folder_name": "folder_001", "blocking_analyses_task_uids": []}', 'output_folder_uid': 'd5decbb8-625c-49e9-8788-751d95a684fc', 'input_folder_uids': [UUID('edecd2c7-3fa2-4266-be3f-c7491309f8be')]}]\n(Background on this error at: https://sqlalche.me/e/20/f405)"
}
Operating System
macOS
Operating System Details
No response
SQLModel Version
0.0.16
Python Version
Python 3.11.2
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions