diff --git a/packages/tools/src/SqlGenerator.ts b/packages/tools/src/SqlGenerator.ts index de48e21f..7f25c6be 100644 --- a/packages/tools/src/SqlGenerator.ts +++ b/packages/tools/src/SqlGenerator.ts @@ -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;