Ensure SQL KILL query executes properly
This commit is contained in:
parent
bd9e518f0f
commit
b6bf75c7b5
1 changed files with 2 additions and 2 deletions
|
@ -315,11 +315,11 @@ func (s *socket) executeKill(e *executor, ctx context.Context, stm *sql.KillStat
|
||||||
switch what := w.(type) {
|
switch what := w.(type) {
|
||||||
|
|
||||||
case *sql.Table:
|
case *sql.Table:
|
||||||
key := &keys.LV{TB: what.TB, LV: qry.ID}
|
key := &keys.LV{KV: KV, NS: s.ns, DB: s.db, TB: what.TB, LV: qry.ID}
|
||||||
_, err = e.dbo.Clr(ctx, key.Encode())
|
_, err = e.dbo.Clr(ctx, key.Encode())
|
||||||
|
|
||||||
case *sql.Ident:
|
case *sql.Ident:
|
||||||
key := &keys.LV{TB: what.VA, LV: qry.ID}
|
key := &keys.LV{KV: KV, NS: s.ns, DB: s.db, TB: what.VA, LV: qry.ID}
|
||||||
_, err = e.dbo.Clr(ctx, key.Encode())
|
_, err = e.dbo.Clr(ctx, key.Encode())
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue