Skip to content

Cannot use the filter allassignees:Username in PostgreSQL #82

@PCunvik

Description

@PCunvik

Kanboard version: 1.2.30
PHP Version: 8.2.7
Group_assign version: 1.8.2
PostgreSQL version: 15.2

I added multiple people to a task and used the filter allassignees:Username as the database complains about the syntax:
SQL: SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near "`"

It is this query that gives the error:
(SELECT id FROM `groups` WHERE `groups`.name='petcun')

I saw that fix #70 fixed a bug in mysql where "groups" was a reserved word, I removed the fix and postgres didn't complain about the syntax anymore and it worked.

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