mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-30 16:13:58 +00:00
fix: do not skip non-returnin statements
This commit is contained in:
@@ -73,16 +73,16 @@ const driver = {
|
|||||||
duckdb.StatementType.LOGICAL_PLAN,
|
duckdb.StatementType.LOGICAL_PLAN,
|
||||||
];
|
];
|
||||||
|
|
||||||
if (!returningStatementTypes.includes(stmt.statementType)) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
const result = await stmt.stream();
|
const result = await stmt.stream();
|
||||||
let hasSentColumns = false;
|
let hasSentColumns = false;
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
const chunk = await result.fetchChunk();
|
const chunk = await result.fetchChunk();
|
||||||
|
|
||||||
|
if (!returningStatementTypes.includes(stmt.statementType)) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
if (!chunk || chunk.rowCount === 0) {
|
if (!chunk || chunk.rowCount === 0) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user