When clearing an index, remove all items
This commit is contained in:
parent
bb8c623f88
commit
9b0ef8d6d7
1 changed files with 1 additions and 1 deletions
|
@ -170,7 +170,7 @@ func (e *executor) executeDefineIndex(ctx context.Context, ast *sql.DefineIndexS
|
|||
}
|
||||
|
||||
dkey := &keys.Index{KV: ast.KV, NS: ast.NS, DB: ast.DB, TB: TB.TB, IX: ast.Name.ID, FD: keys.Ignore}
|
||||
if _, err = e.dbo.DelP(0, dkey.Encode(), 0); err != nil {
|
||||
if _, err = e.dbo.ClrP(dkey.Encode(), 0); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue