fix(basic.gblib): Allow MERGE keyword in storage #380. @othonlima

This commit is contained in:
Rodrigo Rodriguez 2023-12-17 01:03:04 -03:00
parent 1bf2f01f8f
commit a81f86db9e

View file

@ -2287,8 +2287,13 @@ export class SystemKeywords {
let value;
Object.keys(row).forEach(e => {
if (columnName.toLowerCase() === e.toLowerCase()) {
value = row[e];
if (typeof (value) === 'string') {
value = value.substring(0, fieldsSizes[j]);
}
columnNameFound = true;
}
});
@ -2346,7 +2351,7 @@ export class SystemKeywords {
let value = row[p];
if (typeof (value) === 'string') {
value = value.substring(0, fieldsSizes[j]-1);
value = value.substring(0, fieldsSizes[j]);
}
fieldsValues.push(value);