yugabytedb-ysql 0.4 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ece6514d0928f8b4d8a347ea04e4bc20b024d4d55f00ae858e8331cc65ddc120
4
- data.tar.gz: dbbf6a9dea86b06ef11e0b4dd0dbdb48a96a8d78a202f24220000331e2a22fbb
3
+ metadata.gz: d9347ec836b745a18b8488faaa92531bc2e5a11fd03bb3c663768a447ee6fd85
4
+ data.tar.gz: cb090813d96a65fdcbcfa99f0bcb19e45eaf9e642efc8f1d05db7ac546779d4b
5
5
  SHA512:
6
- metadata.gz: 62a26a46b733665660deed77635be022b3fa135fcdb408be52f08a4ed378d84a9b637b756e5266b9247b66e7bf161aa1f49043482d62e95a0966aa9895945019
7
- data.tar.gz: 916adfd2bd79bc2d07a2d5c94b341fa2e855b988a120f646661565da33ddfe4134a61253d224260457c479d953970237de2e25439ba00de8bf4ab13f0c60efef
6
+ metadata.gz: aacb77ed16eb757206c6aa9541e54edd1639f5da2b2f5351ac707ad5fb07583a820ebc08ef7be439108f4d7deedf39e68a5202a2d4094fddbc4ef4bd5420bcaf
7
+ data.tar.gz: 5c82688254d30c875d44696174c5928496404d518300c6de0f709bc28d924b13f4c394d501f993018f1b4f1d2eacabc12427959e6ff25d80ad28e1affec26daa
data/ext/pg_connection.c CHANGED
@@ -2453,6 +2453,15 @@ wait_socket_readable( VALUE self, struct timeval *ptimeout, void *(*is_readable)
2453
2453
  pgconn_close_socket_io(self);
2454
2454
  pg_raise_conn_error(rb_eConnectionBad, self, "PQconsumeInput() %s", PQerrorMessage(conn));
2455
2455
  }
2456
+
2457
+ if (PQsslInUse(conn)) {
2458
+ for (int i = 0; i < 15; i++) {
2459
+ if ( PQconsumeInput(conn) == 0 ) {
2460
+ pgconn_close_socket_io(self);
2461
+ pg_raise_conn_error(rb_eConnectionBad, self, "PQconsumeInput() #%d - %s", i, PQerrorMessage(conn));
2462
+ }
2463
+ }
2464
+ }
2456
2465
  }
2457
2466
 
2458
2467
  return retval;
data/lib/ysql/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module YSQL
2
2
  # Library version
3
3
  PG_VERSION = '1.5.6'
4
- VERSION = '0.4'
4
+ VERSION = '0.5'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yugabytedb-ysql
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.4'
4
+ version: '0.5'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Granger
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2024-08-02 00:00:00.000000000 Z
13
+ date: 2024-08-23 00:00:00.000000000 Z
14
14
  dependencies: []
15
15
  description: Pg_YugabyteDB is the Ruby interface to the PostgreSQL-compatible YugabyteDB.
16
16
  It works with YugabyteDB 2.20 and later.