Skip to content

Commit

Permalink
fix: use existing Result types for new Result
Browse files Browse the repository at this point in the history
  • Loading branch information
mantariksh committed Sep 6, 2024
1 parent 54eb0fa commit 92465ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/pg/lib/query.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class Query extends EventEmitter {
if (!Array.isArray(this._results)) {
this._results = [this._result]
}
this._result = new Result(this._rowMode, this.types)
this._result = new Result(this._rowMode, this._result._types)
this._results.push(this._result)
}
}
Expand Down

0 comments on commit 92465ac

Please sign in to comment.