Skip to content

Commit 68fb761

Browse files
Added test to verify that inherits is not currently supported
1 parent cfd8951 commit 68fb761

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/sqlparser_postgres.rs

+9
Original file line numberDiff line numberDiff line change
@@ -2733,6 +2733,15 @@ fn parse_create_brin() {
27332733
}
27342734
}
27352735

2736+
2737+
#[test]
2738+
fn parse_create_inherits() {
2739+
let sql = "CREATE TABLE child_table (child_column INT) INHERITS (parent_table);";
2740+
match pg().verified_stmt(sql) {
2741+
_ => unreachable!(),
2742+
}
2743+
}
2744+
27362745
#[test]
27372746
fn parse_create_index_concurrently() {
27382747
let sql = "CREATE INDEX CONCURRENTLY IF NOT EXISTS my_index ON my_table(col1,col2)";

0 commit comments

Comments
 (0)