From 3e71338d941694203ec47c63be4e40e07678d8d0 Mon Sep 17 00:00:00 2001 From: jgallego Date: Thu, 10 Oct 2019 12:14:21 +0200 Subject: [PATCH] borra tabla temporal --- modules/worker/back/methods/worker/mySubordinates.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/worker/back/methods/worker/mySubordinates.js b/modules/worker/back/methods/worker/mySubordinates.js index 571edc7f8..bf1cd1be8 100644 --- a/modules/worker/back/methods/worker/mySubordinates.js +++ b/modules/worker/back/methods/worker/mySubordinates.js @@ -30,10 +30,12 @@ module.exports = Self => { stmts.push(new ParameterizedSQL('CALL vn.subordinateGetList(?)', [myWorker.id])); stmts.push('SELECT * FROM tmp.subordinate'); + stmts.push('DROP TEMPORARY TABLE tmp.subordinate'); let sql = ParameterizedSQL.join(stmts, ';'); let result = await conn.executeStmt(sql); + return result[1]; }; };