We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65bc3d4 commit 32fbe37Copy full SHA for 32fbe37
packages/pg-native/lib/build-result.js
@@ -33,9 +33,8 @@ class Result {
33
}
34
35
consumeRows(pq) {
36
- const tupleCount = pq.ntuples()
37
- this.rows = new Array(tupleCount)
38
- for (let i = 0; i < tupleCount; i++) {
+ this.rows = new Array(this.rowCount)
+ for (let i = 0; i < this.rowCount; i++) {
39
this.rows[i] = this._arrayMode ? this.consumeRowAsArray(pq, i) : this.consumeRowAsObject(pq, i)
40
41
0 commit comments