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 @@ -8920,16 +8920,17 @@ impl<'a> Parser<'a> {
8920
8920
let name = self.parse_identifier()?;
8921
8921
AlterTableOperation::ValidateConstraint { name }
8922
8922
} else {
8923
- let maybe_options = self.maybe_parse_options(Keyword::SET)?;
8924
- if let Some(options) = maybe_options {
8925
- AlterTableOperation::SetStorageParameters {
8926
- storage_parameters: options,
8923
+ let mut options =
8924
+ self.parse_options_with_keywords(&[Keyword::SET, Keyword::TBLPROPERTIES])?;
8925
+ if !options.is_empty() {
8926
+ AlterTableOperation::SetTblProperties {
8927
+ table_properties: options,
8927
8928
}
8928
8929
} else {
8929
- let options: Vec<SqlOption> = self.parse_options(Keyword::TBLPROPERTIES )?;
8930
+ options = self.parse_options(Keyword::SET )?;
8930
8931
if !options.is_empty() {
8931
- AlterTableOperation::SetTblProperties {
8932
- table_properties : options,
8932
+ AlterTableOperation::SetStorageParameters {
8933
+ storage_parameters : options,
8933
8934
}
8934
8935
} else {
8935
8936
return self.expected(
You can’t perform that action at this time.
0 commit comments