planner: update the syntax of drop hypo index (#44944)

close pingcap/tidb#43817
This commit is contained in:
Yuanjia Zhang
2023-06-26 17:08:35 +08:00
committed by GitHub
parent 352b44e1e4
commit 09bbf08d72
7 changed files with 5183 additions and 5147 deletions

View File

@ -5023,6 +5023,10 @@ DropIndexStmt:
}
$$ = &ast.DropIndexStmt{IfExists: $3.(bool), IndexName: $4, Table: $6.(*ast.TableName), LockAlg: indexLockAndAlgorithm}
}
| "DROP" "HYPO" "INDEX" IfExists Identifier "ON" TableName
{
$$ = &ast.DropIndexStmt{IfExists: $4.(bool), IndexName: $5, Table: $7.(*ast.TableName), IsHypo: true}
}
DropTableStmt:
"DROP" OptTemporary TableOrTables IfExists TableNameList RestrictOrCascadeOpt