Skip to content

String[] fields #2328

@tonxxd

Description

@tonxxd

Description and expected behavior
in v3 it seems policies do not work well with fields like String[] which in postgres are stored as {}
if i use a policy like @@Allow('all', true)
it works
but if i use @@Allow('all', auth().id = userId)
then i get
Error: [error: syntax error at or near "{"] {
length: 91,
severity: 'ERROR',
code: '42601',
detail: undefined,
hint: undefined,
position: '659',
internalPosition: undefined,
internalQuery: undefined,
where: undefined,
schema: undefined,
table: undefined,
column: undefined,
dataType: undefined,
constraint: undefined,
file: 'scan.l',
line: '1188',
routine: 'scanner_yyerror'
}
not sure why, since the query is not shown at all even with log set to error and query in zenstack client
changing the column type to Json fixes the issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions