Replies: 1 comment
-
Works fine in current version (0.0.24): Output in the details:
|
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.
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Description
I have a UUID field as my primary key, and am inserting items as seen in the code above. Whenever I add two items to my session and commit, it leads to the following error:
InvalidRequestError: Can't match sentinel values in result set to parameter sets; key '34bdaa33-90fe-4058-a278-3561fe04ad70' was not found. There may be a mismatch between the datatype passed to the DBAPI driver vs. that which it returns in a result row. Ensure the given Python value matches the expected result type *exactly*, taking care to not rely upon implicit conversions which may occur such as when using strings in place of UUID or integer values, etc.
created_at
andupdated_at
seem to cause the error -- without these columns it works as expected._sentinel_value_resolver
, or can be swapped out for theUuid
type as recommended here and here.Operating System
macOS
Operating System Details
sqlalchemy==2.0.28
SQLModel Version
0.0.16
Python Version
3.11
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions