File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -8938,16 +8938,17 @@ impl<'a> Parser<'a> {
8938
8938
let name = self.parse_identifier()?;
8939
8939
AlterTableOperation::ValidateConstraint { name }
8940
8940
} else {
8941
- let maybe_options = self.maybe_parse_options(Keyword::SET)?;
8942
- if let Some(options) = maybe_options {
8943
- AlterTableOperation::SetStorageParameters {
8944
- storage_parameters: options,
8941
+ let mut options =
8942
+ self.parse_options_with_keywords(&[Keyword::SET, Keyword::TBLPROPERTIES])?;
8943
+ if !options.is_empty() {
8944
+ AlterTableOperation::SetTblProperties {
8945
+ table_properties: options,
8945
8946
}
8946
8947
} else {
8947
- let options: Vec<SqlOption> = self.parse_options(Keyword::TBLPROPERTIES )?;
8948
+ options = self.parse_options(Keyword::SET )?;
8948
8949
if !options.is_empty() {
8949
- AlterTableOperation::SetTblProperties {
8950
- table_properties : options,
8950
+ AlterTableOperation::SetStorageParameters {
8951
+ storage_parameters : options,
8951
8952
}
8952
8953
} else {
8953
8954
return self.expected(
You can’t perform that action at this time.
0 commit comments