mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 02:06:01 +00:00
fix: do not skip non-returnin statements
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user