Skip to content

Postgres: does not support DROP FUNCTION #753

Closed
@zidaye

Description

@zidaye
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

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