You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an enum that I save into my postgresql database as a Json value with serde_json.
pubenumBelongsTo{User(Uuid),Group(Uuid),}
When I try to search for it I get an error from the databasa saying I cannot compare json = jsonb. I don't really understand why its trying to query with a JsonBinary instead of normal Json.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have an enum that I save into my postgresql database as a Json value with serde_json.
When I try to search for it I get an error from the databasa saying I cannot compare
json = jsonb
. I don't really understand why its trying to query with a JsonBinary instead of normal Json.I have also double checked, and indeed my type is json in the entities.
Any ideas why this could be happening?
Beta Was this translation helpful? Give feedback.
All reactions