We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7947c6a commit 6b1bc37Copy full SHA for 6b1bc37
tests/sqlparser_postgres.rs
@@ -6259,3 +6259,16 @@ fn parse_alter_table_constraint_not_valid() {
6259
_ => unreachable!(),
6260
}
6261
6262
+
6263
+#[test]
6264
+fn parse_alter_table_validate_constraint() {
6265
+ match pg().verified_stmt("ALTER TABLE foo VALIDATE CONSTRAINT bar") {
6266
+ Statement::AlterTable { operations, .. } => {
6267
+ assert_eq!(
6268
+ operations,
6269
+ vec![AlterTableOperation::ValidateConstraint { name: "bar".into() }]
6270
+ );
6271
+ }
6272
+ _ => unreachable!(),
6273
6274
+}
0 commit comments