fix(basic.gblib): Allow MERGE keyword in storage #380. @othonlima
This commit is contained in:
parent
972536b03e
commit
595cf3f1c7
1 changed files with 5 additions and 1 deletions
|
@ -2142,6 +2142,10 @@ export class SystemKeywords {
|
||||||
})
|
})
|
||||||
|
|
||||||
header = Object.keys(t.fieldRawAttributesMap);
|
header = Object.keys(t.fieldRawAttributesMap);
|
||||||
|
|
||||||
|
// In a single execution, several MERGE calls will benift
|
||||||
|
// from caching results across calls.
|
||||||
|
|
||||||
if (!this.cachedMerge[pid][file]) {
|
if (!this.cachedMerge[pid][file]) {
|
||||||
await retry(
|
await retry(
|
||||||
async (bail) => {
|
async (bail) => {
|
||||||
|
@ -2211,7 +2215,7 @@ export class SystemKeywords {
|
||||||
const propertyName = header[colIndex];
|
const propertyName = header[colIndex];
|
||||||
let value = tmpRow[colIndex];
|
let value = tmpRow[colIndex];
|
||||||
|
|
||||||
if (value && value.charAt(0) === "'") {
|
if (value && typeof value === 'string' && value.charAt(0) === "'") {
|
||||||
if (await this.isValidDate({ pid, dt: value.substr(1) })) {
|
if (await this.isValidDate({ pid, dt: value.substr(1) })) {
|
||||||
value = value.substr(1);
|
value = value.substr(1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue