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

Postgres: does not support DROP FUNCTION #753

Closed
zidaye opened this issue Dec 8, 2022 · 1 comment · Fixed by #752
Closed

Postgres: does not support DROP FUNCTION #753

zidaye opened this issue Dec 8, 2022 · 1 comment · Fixed by #752

Comments

@zidaye
Copy link
Contributor

zidaye commented Dec 8, 2022

fn test() {
    let sql = "DROP FUNCTION IF EXISTS test_func";

    let dialect = PostgreSqlDialect {};

    let ast = Parser::parse_sql(&dialect, sql).unwrap();

    println!("AST: {:?}", ast);
}

The result after the test case is executed:

panicked at 'called `Result::unwrap()` on an `Err` value: ParserError("Expected TABLE, VIEW, INDEX, ROLE, SCHEMA, or SEQUENCE after DROP, found: FUNCTION")', examples/parse_select.rs:23:48
@zidaye
Copy link
Contributor Author

zidaye commented Dec 8, 2022

pr #752

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

Successfully merging a pull request may close this issue.

1 participant