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
Is there any other reasonable auto conversion from an enum value to a json value that I might be overlooking?
There are at least two other possible conversions to 1-based JSON number or 0-based JSON number, but they aren't reasonable from my point of view; people who need them can use a cast and arithmetic operation.
Try this:
I would expect the query to produce
["a"]
, but it fails with:As a workaround, I can cast the enum value back to
VARCHAR
explicitly, but I think that should work out of the box?Is there any other reasonable auto conversion from an enum value to a json value that I might be overlooking?
The text was updated successfully, but these errors were encountered: