Skip to content

Using SQL functions in model.List results into invalid SQL. #64

@stefvanhouten

Description

@stefvanhouten

For example:

model.User.List(self.connection, order=("LOWER(username)",))

Will generate the following SQL:

ORDER BY `lower(username)`;

Thus generating an error because `lower(..)` is not a valid column.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions