Skip to content

Issue on GRANT query #1101

Closed
Closed

Description

@ldragone

I'm having trouble running grant queries.

The variables are:
tableArray = ['schema.table1','schema.table2']
roleName = 'example'

This query works fine:
GRANT INSERT ON ${this.sql(tableArray)} TO ${this.sql(roleName)}

the generated query is correct:
GRANT SELECT ON "schema"."table1","schema"."table2" TO "example"

This one doesn't work:
GRANT UPDATE ON ${this.sql(tableArray)} TO ${this.sql(roleName)}

the generated query is invalid:
GRANT UPDATE ON "0"=$1,"1"=$2 TO "example"

Is this a bug in the system that understands what to replace in the query?

Activity

  1. added a commit that references this issue on Oct 29, 2026
    06cf284
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions