Skip to content

Commit fcc6488

Browse files
committed
Table OIDs added to response
1 parent df0f4d1 commit fcc6488

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/pg/lib/result.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,14 @@ class Result {
6161
}
6262

6363
parseRow(rowData) {
64-
var row = { ...this._prebuiltEmptyResultObject }
64+
var row = {}
6565
for (var i = 0, len = rowData.length; i < len; i++) {
6666
var rawValue = rowData[i]
6767
var field = this.fields[i].name
6868
if (rawValue !== null) {
69-
row[field] = this._parsers[i](rawValue)
69+
row[`${this.fields[i].tableID}.${field}`] = this._parsers[i](rawValue)
7070
} else {
71-
row[field] = null
71+
row[`${this.fields[i].tableID}.${field}`] = null
7272
}
7373
}
7474
return row

0 commit comments

Comments
 (0)