pg 7.18.1 → 7.18.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.
- package/README.md +13 -3
- package/lib/client.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -44,11 +44,21 @@ When you open an issue please provide:
|
|
|
44
44
|
|
|
45
45
|
You can also follow me [@briancarlson](https://twitter.com/briancarlson) if that's your thing. I try to always announce noteworthy changes & developments with node-postgres on Twitter.
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
## Sponsorship :two_hearts:
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
node-postgres's continued development has been made possible in part by generous finanical support from [the community](https://github.com/brianc/node-postgres/blob/master/SPONSORS.md) and these featured sponsors:
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
<div align="center">
|
|
52
|
+
<a href="https://www.timescale.com" target="_blank">
|
|
53
|
+
<img height="80" src="https://node-postgres.com/timescale.svg" />
|
|
54
|
+
</a>
|
|
55
|
+
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAABCAQAAAB0m0auAAAADElEQVR42mNkIBIAAABSAAI2VLqiAAAAAElFTkSuQmCC" />
|
|
56
|
+
<a href="https://crate.io" target="_blank">
|
|
57
|
+
<img height="80" src="https://node-postgres.com/crate-io.png" />
|
|
58
|
+
</a>
|
|
59
|
+
</div>
|
|
60
|
+
|
|
61
|
+
If you or your company are benefiting from node-postgres and would like to help keep the project financially sustainable [please consider supporting](https://github.com/sponsors/brianc) its development.
|
|
52
62
|
|
|
53
63
|
|
|
54
64
|
## Contributing
|
package/lib/client.js
CHANGED
|
@@ -545,7 +545,7 @@ Client.prototype.query = function (config, values, callback) {
|
|
|
545
545
|
Client.prototype.end = function (cb) {
|
|
546
546
|
this._ending = true
|
|
547
547
|
|
|
548
|
-
if (this.activeQuery) {
|
|
548
|
+
if (this.activeQuery || !this._queryable) {
|
|
549
549
|
// if we have an active query we need to force a disconnect
|
|
550
550
|
// on the socket - otherwise a hung query could block end forever
|
|
551
551
|
this.connection.stream.destroy()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pg",
|
|
3
|
-
"version": "7.18.
|
|
3
|
+
"version": "7.18.2",
|
|
4
4
|
"description": "PostgreSQL client - pure javascript & libpq with the same API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"database",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"engines": {
|
|
54
54
|
"node": ">= 4.5.0"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "29877530c6f7b5ebc0bf814e3a711b4b66e4d51a"
|
|
57
57
|
}
|