Skip to content

Regression in parsing NULL LIKE <expr> #578

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
andygrove opened this issue Aug 17, 2022 · 0 comments · Fixed by #579
Closed

Regression in parsing NULL LIKE <expr> #578

andygrove opened this issue Aug 17, 2022 · 0 comments · Fixed by #579
Assignees
Labels
bug Something isn't working

Comments

@andygrove
Copy link
Member

andygrove commented Aug 17, 2022

This test passes against 0.20.0 but fails in the main branch. This is likely caused by my recent changes for parsing LIKE.

#[test]
fn parse_null_like() {
    let sql =
        "SELECT \
            column1 LIKE NULL AS col_null, \
            NULL LIKE column1 AS null_col \
        FROM customers";
    let _ = verified_only_select(sql);
}

Failure:

SQL(ParserError(\"Expected a concrete value, found: column1\"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant