pg 8.16.1 → 8.16.2

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 +2 -1
  2. package/package.json +3 -3
package/lib/result.js CHANGED
@@ -66,7 +66,8 @@ class Result {
66
66
  const rawValue = rowData[i]
67
67
  const field = this.fields[i].name
68
68
  if (rawValue !== null) {
69
- row[field] = this._parsers[i](rawValue)
69
+ const v = this.fields[i].format === 'binary' ? Buffer.from(rawValue) : rawValue
70
+ row[field] = this._parsers[i](v)
70
71
  } else {
71
72
  row[field] = null
72
73
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pg",
3
- "version": "8.16.1",
3
+ "version": "8.16.2",
4
4
  "description": "PostgreSQL client - pure javascript & libpq with the same API",
5
5
  "keywords": [
6
6
  "database",
@@ -37,7 +37,7 @@
37
37
  "dependencies": {
38
38
  "pg-connection-string": "^2.9.1",
39
39
  "pg-pool": "^3.10.1",
40
- "pg-protocol": "^1.10.1",
40
+ "pg-protocol": "^1.10.2",
41
41
  "pg-types": "2.2.0",
42
42
  "pgpass": "1.0.5"
43
43
  },
@@ -75,5 +75,5 @@
75
75
  "engines": {
76
76
  "node": ">= 16.0.0"
77
77
  },
78
- "gitHead": "cd877a57612a39335a97b593111710d26126279d"
78
+ "gitHead": "1a25d128177dd7c54dc4652bbb92ac7986306e3f"
79
79
  }