Rename AlterOperation -> AlterTableOperation

Since other ALTER statements will have separate sub-commands.
This commit is contained in:
Nickolay Ponomarev 2019-05-08 04:01:10 +03:00
parent aab0c36443
commit 8569a61fd0
4 changed files with 9 additions and 9 deletions

View file

@ -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());
}