new(all): GBLogEx published.
This commit is contained in:
parent
d392c0082d
commit
3e9170d446
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue