better usage of __isStreamHeader flag

This commit is contained in:
Jan Prochazka
2022-02-17 13:23:56 +01:00
parent 29fa8445e2
commit 2946d8a1de
8 changed files with 22 additions and 36 deletions

View File

@@ -14,6 +14,7 @@ export function createBulkInsertStreamBase(driver, stream, pool, name, options):
writable.buffer = [];
writable.structure = null;
writable.columnNames = null;
writable.requireFixedStructure = !driver.dialect.nosql;
writable.addRow = async row => {
if (writable.structure) {