mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
sql generator fix
This commit is contained in:
parent
2a980a7892
commit
a50458494e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user