Skip to content

Commit

Permalink
chore: fmt code
Browse files Browse the repository at this point in the history
  • Loading branch information
e1ijah1 committed Dec 26, 2022
1 parent 7867877 commit 0614d6e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/sql/src/parsers/alter_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,11 @@ impl<'a> ParserContext<'a> {
let new_table_name_obj = parser.parse_object_name()?;
let new_table_name = match &new_table_name_obj.0[..] {
[table] => table.value.clone(),
_ => return Err(ParserError::ParserError(format!(
"expect table name, actual: {new_table_name_obj}"
))),
_ => {
return Err(ParserError::ParserError(format!(
"expect table name, actual: {new_table_name_obj}"
)))
}
};
AlterTableOperation::RenameTable { new_table_name }
} else {
Expand Down

0 comments on commit 0614d6e

Please sign in to comment.