Skip to content

First parameter of assign in SQLUpdate not escaped #58

@NoLdman

Description

@NoLdman

In

->assign($sortColumn, $sort++)
the first parameter of assign isn't escaped, which causes SilverStripe-Installations with PostgreSQL databases to cast the column to lower-case (i.e. "sortorder").

Shouldn't it be escaped as follows?

->assign("\"$sortColumn\"", $sort++)

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