sql generator fix

This commit is contained in:
Jan Prochazka 2021-04-01 10:56:36 +02:00
parent 2a980a7892
commit a50458494e

View File

@ -239,10 +239,15 @@ export class SqlGenerator {
: table.columns;
const columnNames = columnsFiltered.map(x => x.columnName);
let isClosed = false;
let isHeaderRead = false;
return new Promise(resolve => {
readable.on('data', chunk => {
if (isClosed) return;
if (!isHeaderRead) {
isHeaderRead = true;
return;
}
if (this.checkDumper()) {
isClosed = true;