mvzink commented on code in PR #2002: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2002#discussion_r2279791312
########## src/ast/ddl.rs: ########## @@ -658,8 +659,31 @@ impl fmt::Display for AlterTableOperation { } ) } - AlterTableOperation::DropPrimaryKey => write!(f, "DROP PRIMARY KEY"), - AlterTableOperation::DropForeignKey { name } => write!(f, "DROP FOREIGN KEY {name}"), + AlterTableOperation::DropPrimaryKey { drop_behavior } => { + write!( + f, + "DROP PRIMARY KEY{}", + match drop_behavior { + None => "", + Some(DropBehavior::Restrict) => " RESTRICT", Review Comment: `DropBehavior` has `Display`, so you could use that. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org