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]) {
return data;
}
@ -420,6 +421,7 @@ export class SystemKeywords {
if (objectMode) {
first = data.shift();
}
GBLogEx.info(min, `Executing SQL: ${sql}`);
data = alasql(sql, [data]);
if (objectMode) {
data.unshift(first);