mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-04 06:18:17 +00:00
Adds support for pg CREATE EXTENSION (#1078)
This commit is contained in:
parent
1d63466ef8
commit
0be42eed58
4 changed files with 97 additions and 0 deletions
|
@ -584,6 +584,23 @@ fn parse_alter_table_enable() {
|
|||
pg_and_generic().verified_stmt("ALTER TABLE tab ENABLE TRIGGER USER");
|
||||
pg_and_generic().verified_stmt("ALTER TABLE tab ENABLE TRIGGER trigger_name");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parse_create_extension() {
|
||||
pg_and_generic().verified_stmt("CREATE EXTENSION extension_name");
|
||||
pg_and_generic().verified_stmt("CREATE EXTENSION extension_name WITH SCHEMA schema_name");
|
||||
pg_and_generic().verified_stmt("CREATE EXTENSION extension_name WITH VERSION version");
|
||||
pg_and_generic().verified_stmt("CREATE EXTENSION extension_name WITH CASCADE");
|
||||
pg_and_generic().verified_stmt(
|
||||
"CREATE EXTENSION extension_name WITH SCHEMA schema_name VERSION version CASCADE",
|
||||
);
|
||||
pg_and_generic()
|
||||
.verified_stmt("CREATE EXTENSION extension_name WITH SCHEMA schema_name CASCADE");
|
||||
pg_and_generic().verified_stmt("CREATE EXTENSION extension_name WITH VERSION version CASCADE");
|
||||
pg_and_generic()
|
||||
.verified_stmt("CREATE EXTENSION extension_name WITH SCHEMA schema_name VERSION version");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parse_alter_table_alter_column() {
|
||||
pg().one_statement_parses_to(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue