Skip to content

Postgres: [USING method] does not support index creation. #729

Closed
@step-baby

Description

@step-baby
#[test]
fn test_create_index() {
     let pg_dialect = PostgreSqlDialect {};
     let sql = r#"
     CREATE INDEX "test_indexes" ON "public"."test" USING btree ("id","user_id","action","result");"#;
     let mut ast = Parser::parse_sql(&pg_dialect, sql).unwrap();
}

The result after the test case is executed:

called `Result::unwrap()` on an `Err` value: ParserError("Expected (, found: USING")
thread 'ast::tests::test_create_index' panicked at 'called `Result::unwrap()` on an `Err` value: ParserError("Expected (, found: USING")',

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