mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-31 03:07:20 +00:00
Postgres: support ADD CONSTRAINT NOT VALID
and VALIDATE CONSTRAINT
(#1908)
This commit is contained in:
parent
015caca611
commit
418b94227a
7 changed files with 99 additions and 22 deletions
|
@ -4956,7 +4956,7 @@ fn parse_alter_table_constraints() {
|
|||
match alter_table_op(verified_stmt(&format!(
|
||||
"ALTER TABLE tab ADD {constraint_text}"
|
||||
))) {
|
||||
AlterTableOperation::AddConstraint(constraint) => {
|
||||
AlterTableOperation::AddConstraint { constraint, .. } => {
|
||||
assert_eq!(constraint_text, constraint.to_string());
|
||||
}
|
||||
_ => unreachable!(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue