Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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