mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-11 14:32:04 +00:00
Rename AlterOperation -> AlterTableOperation
Since other ALTER statements will have separate sub-commands.
This commit is contained in:
parent
aab0c36443
commit
8569a61fd0
4 changed files with 9 additions and 9 deletions
|
@ -974,7 +974,7 @@ impl Parser {
|
|||
let table_name = self.parse_object_name()?;
|
||||
let operation = if self.parse_keyword("ADD") {
|
||||
if let Some(constraint) = self.parse_optional_table_constraint()? {
|
||||
AlterOperation::AddConstraint(constraint)
|
||||
AlterTableOperation::AddConstraint(constraint)
|
||||
} else {
|
||||
return self.expected("a constraint in ALTER TABLE .. ADD", self.peek_token());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue