new(all): GBLogEx published.

This commit is contained in:
Rodrigo Rodriguez 2024-04-27 17:47:06 -03:00
parent d392c0082d
commit 3e9170d446

View file

@ -407,7 +407,8 @@ export class SystemKeywords {
} }
} }
public async executeSQL({ pid, data, sql, tableName }) { public async executeSQL({ pid, data, sql }) {
const { min } = await DialogKeywords.getProcessInfo(pid);
if (!data || !data[0]) { if (!data || !data[0]) {
return data; return data;
} }
@ -420,6 +421,7 @@ export class SystemKeywords {
if (objectMode) { if (objectMode) {
first = data.shift(); first = data.shift();
} }
GBLogEx.info(min, `Executing SQL: ${sql}`);
data = alasql(sql, [data]); data = alasql(sql, [data]);
if (objectMode) { if (objectMode) {
data.unshift(first); data.unshift(first);