diff --git a/titan/resources/grant.py b/titan/resources/grant.py index 0406299..d90bec9 100644 --- a/titan/resources/grant.py +++ b/titan/resources/grant.py @@ -457,6 +457,8 @@ def __post_init__(self): super().__post_init__() if self.in_type not in [ResourceType.DATABASE, ResourceType.SCHEMA]: raise ValueError(f"in_type must be either DATABASE or SCHEMA, not {self.in_type}") + if isinstance(self.priv, str): + self.priv = self.priv.upper() self.to_type = self.to.resource_type