fix: do not skip non-returnin statements

This commit is contained in:
Nybkox
2025-04-29 01:32:55 +02:00
parent f67221ee01
commit 9390ab3c6c

View File

@@ -73,16 +73,16 @@ const driver = {
duckdb.StatementType.LOGICAL_PLAN,
];
if (!returningStatementTypes.includes(stmt.statementType)) {
continue;
}
const result = await stmt.stream();
let hasSentColumns = false;
while (true) {
const chunk = await result.fetchChunk();
if (!returningStatementTypes.includes(stmt.statementType)) {
break;
}
if (!chunk || chunk.rowCount === 0) {
break;
}