Skip to content

Commit 4566ce7

Browse files
tianzhouCopilot
andauthored
Update src/connectors/postgres/index.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 09f21c1 commit 4566ce7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/connectors/postgres/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ export class PostgresConnector implements Connector {
481481
if (result.rows && result.rows.length > 0) {
482482
allRows.push(...result.rows);
483483
}
484-
// Accumulate rowCount for INSERT/UPDATE/DELETE statements
484+
// Accumulate rowCount for all statements (affected rows for writes, returned rows for reads)
485485
if (result.rowCount) {
486486
totalRowCount += result.rowCount;
487487
}

0 commit comments

Comments
 (0)