Skip to content

UPDATE ... ORDER BY ... LIMIT support in MySQL Dialect #2274

@prydt

Description

@prydt
let sql = "UPDATE job_queue SET status = 'processing' WHERE status = 'pending' ORDER BY created_at ASC LIMIT 10;";
let dialect = MySqlDialect {};
let ast = Parser::parse_sql(&dialect, sql).unwrap();

fails with called Result::unwrap()on anErr value: ParserError("Expected: end of statement, found: ORDER at Line: 1, Column: 69")

I have a fix for this in the works and will add testing for both MySQL and Generic dialects.

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