planner: update the syntax of drop hypo index (#44944)
close pingcap/tidb#43817
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user