Skip to content
This repository was archived by the owner on Jan 17, 2025. It is now read-only.
This repository was archived by the owner on Jan 17, 2025. It is now read-only.

Allow GRANTs to PUBLIC #61

Closed
Closed
@craigmaclachlan

Description

@craigmaclachlan

I just started using the provider and ran into an issue. I tried to grant permissions on a new schema to public, but this caused an error and broke my state file. Setting the user to be "public" results in an error like this during plan:

Error: failed to get user ID: sql: no rows in result set

I think the issue is when trying to check the state, the code runs a query filtering for the username, but public is special, so it isn't listed.

func readSchemaGrants(db *DBConnection, d *schema.ResourceData) error {

Would it be possible to add functionality to handle public?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions