Ensure SQL KILL query executes properly

This commit is contained in:
Tobie Morgan Hitchcock 2019-02-01 01:26:47 +00:00
parent bd9e518f0f
commit b6bf75c7b5

View file

@ -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())
} }