File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -4448,14 +4448,19 @@ alter_ops($relationNode)
44484448 | alter_ops ',' alter_op($relationNode)
44494449 ;
44504450
4451+ col_noise
4452+ :
4453+ | COLUMN
4454+ ;
4455+
44514456%type alter_op(<relationNode>)
44524457alter_op($relationNode)
4453- : DROP if_exists_opt symbol_column_name drop_behaviour
4458+ : DROP col_noise if_exists_opt symbol_column_name drop_behaviour
44544459 {
44554460 RelationNode ::DropColumnClause * clause = newNode <RelationNode ::DropColumnClause >();
4456- clause->silent = $2 ;
4457- clause->name = *$3 ;
4458- clause->cascade = $4 ;
4461+ clause->silent = $3 ;
4462+ clause->name = *$4 ;
4463+ clause->cascade = $5 ;
44594464 $relationNode->clauses.add(clause);
44604465 }
44614466 | DROP CONSTRAINT if_exists_opt symbol_constraint_name
@@ -4465,10 +4470,10 @@ alter_op($relationNode)
44654470 clause->name = *$4;
44664471 $relationNode->clauses.add(clause);
44674472 }
4468- | ADD if_not_exists_opt column_def($relationNode)
4473+ | ADD col_noise if_not_exists_opt column_def($relationNode)
44694474 {
4470- const auto node = $3 ;
4471- node->createIfNotExistsOnly = $2 ;
4475+ const auto node = $4 ;
4476+ node->createIfNotExistsOnly = $3 ;
44724477 }
44734478 | ADD table_constraint($relationNode)
44744479 | ADD CONSTRAINT if_not_exists_opt symbol_constraint_name table_constraint($relationNode)
You can’t perform that action at this time.
0 commit comments