pg 8.13.2 → 8.13.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/result.js +4 -2
  2. package/package.json +2 -2
package/lib/result.js CHANGED
@@ -88,11 +88,11 @@ class Result {
88
88
  this._parsers = new Array(fieldDescriptions.length)
89
89
  }
90
90
 
91
- this._prebuiltEmptyResultObject = {}
91
+ var row = {}
92
92
 
93
93
  for (var i = 0; i < fieldDescriptions.length; i++) {
94
94
  var desc = fieldDescriptions[i]
95
- this._prebuiltEmptyResultObject[desc.name] = null
95
+ row[desc.name] = null
96
96
 
97
97
  if (this._types) {
98
98
  this._parsers[i] = this._types.getTypeParser(desc.dataTypeID, desc.format || 'text')
@@ -100,6 +100,8 @@ class Result {
100
100
  this._parsers[i] = types.getTypeParser(desc.dataTypeID, desc.format || 'text')
101
101
  }
102
102
  }
103
+
104
+ this._prebuiltEmptyResultObject = { ...row }
103
105
  }
104
106
  }
105
107
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pg",
3
- "version": "8.13.2",
3
+ "version": "8.13.3",
4
4
  "description": "PostgreSQL client - pure javascript & libpq with the same API",
5
5
  "keywords": [
6
6
  "database",
@@ -58,5 +58,5 @@
58
58
  "engines": {
59
59
  "node": ">= 8.0.0"
60
60
  },
61
- "gitHead": "732580782ffa2f9299f7112ff27cfa4534cd22f3"
61
+ "gitHead": "5755b783862dd593f8119d5f5711cfbd10b58444"
62
62
  }