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