pgx 1.0.4 → 1.0.5
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.
- checksums.yaml +4 -4
- data/lib/pgx.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c268162193064b348f33c12034d1de7c69c147e2ce8421b5d0d1fe9849504ce9
|
4
|
+
data.tar.gz: '08cac6695d7c3920f667f2392ed1da5ff53b162e37dc24461f95fc058555366c'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d149f7288a4a193ec0f56ecd13eadb5ffdc6a635cb4462e451d4d4122738cdf4dfee018c04871f174dd41e4918b5e03ee4b2ca17fd336fa3236aa24a986f71dd
|
7
|
+
data.tar.gz: 7ac9564501c49481f86a235aeb37be98183f664d277c3707d43f57d99f087684bdd34720deca8127f0749c90bb43c63333bcd79cb6cd0d94c4e6fd29469d59ea
|
data/lib/pgx.rb
CHANGED
@@ -44,7 +44,7 @@ module PGx
|
|
44
44
|
# @see http://www.mockbites.com/articles/tech/pgx pgx documentation
|
45
45
|
# @see http://deveiate.org/code/pg/PG/Connection.html Base class methods
|
46
46
|
class PGx::Connection < PG::Connection
|
47
|
-
alias PG_close close # for use when closing bad connections
|
47
|
+
alias PG_close close # PG's close(), for use when closing bad connections
|
48
48
|
|
49
49
|
# @param [Logger] logger: a logger object, or a lambda returning the
|
50
50
|
# logger object. Note that a lambda returning the logger is
|
@@ -354,7 +354,7 @@ module PGx
|
|
354
354
|
end # the transaction
|
355
355
|
else # not connected
|
356
356
|
log_warn 'bad database connection'
|
357
|
-
|
357
|
+
PG_close() # close so we don't leak connections
|
358
358
|
connect_loop()
|
359
359
|
retry
|
360
360
|
end
|