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
fix: cast auth() string values to uuid on PostgreSQL when field has @db.Uuid
When policy expressions compare auth() member values against columns
with @db.Uuid native type, PostgreSQL raises 'operator does not exist:
text = uuid' because parameterized string values are sent as text type.
This fix inspects the field's native type attributes from the runtime
schema and applies an explicit ::uuid cast when needed. The cast is
applied in two code paths:
- valueMemberAccess: for auth().field member access in policies
- _field with contextValue: for field evaluation in collection predicates
Fixes#2394
0 commit comments