Skip to content
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

Expected literal number, found: $1 #486

Open
step-baby opened this issue May 9, 2022 · 0 comments
Open

Expected literal number, found: $1 #486

step-baby opened this issue May 9, 2022 · 0 comments

Comments

@step-baby
Copy link
Contributor

test code:

    #[test]
    fn test_sql() {
        let sql = "select distinct incident0_.incident_id as incident1_39_ from incident incident0_ where 1=1 order by incident0_.create_time desc limit $1";
        Parser::parse_sql(&dialect, sql).unwrap();
    }

result:

called `Result::unwrap()` on an `Err` value: ParserError("Expected literal number, found: $1")
thread 'interceptor::pg::tests::test_sql' panicked at 'called `Result::unwrap()` on an `Err` value: ParserError("Expected literal number, found: $1")',
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant