pg 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: de283e26d9b321e332b3a0cfb7528a169c85c6842b45eed15a11dceafff0c51c
4
- data.tar.gz: 32969355bf10d56fcc23611b5906c93315acd90dc718c13db77adb5358e8a2c6
3
+ metadata.gz: a5aece061d9d89ecf67827b8bdd6db7ea023df6ef00cca23555d9ee8b0e0102d
4
+ data.tar.gz: de1b7e0bcdae378c3ccebb1513945f67e95c5f0a36cf7e809cdd30aeeb6c6316
5
5
  SHA512:
6
- metadata.gz: 9c85938f84751d4720b1419cf17cc089804f6ae64af363078267e784a04a99b04e8c5448d5ac349afb833254e8991f619fe2b3eb2492e2b91fdd446c2f42797a
7
- data.tar.gz: 96777364ae066e8a06b0c0d589752f4f328fd17066b7888663f45798207a6737c68fef01fa10cba6ae7f210a7f6dd8c55210039cbd4d9b71b91a709b3a052fdd
6
+ metadata.gz: b86daa15aa2ad933127de6876b47d6c68bc0be82014a8c6912c0b95c7dd801be53f1ddab69d1488a12e059323eddb83dd6d40ea74fde19ccbd68fe9830cca130
7
+ data.tar.gz: b2fd717ed50bf0886e5daf37eef5e689b8f6170906ab1d8b372f430285c61d03f47a11da783d9ba18592ae8de0f70bc22ec97a274f6b2cf9dde15b7aaceb8727
checksums.yaml.gz.sig CHANGED
Binary file
data/History.rdoc CHANGED
@@ -1,4 +1,12 @@
1
- == v1.4.0 [YYYY-MM-DD] Lars Kanis <lars@greiz-reinsdorf.de>
1
+ == v1.4.1 [2022-06-24] Lars Kanis <lars@greiz-reinsdorf.de>
2
+
3
+ Bugfixes:
4
+
5
+ - Fix another ruby-2.7 keyword warning. #465
6
+ - Allow PG::Error to be created without arguments. #466
7
+
8
+
9
+ == v1.4.0 [2022-06-20] Lars Kanis <lars@greiz-reinsdorf.de>
2
10
 
3
11
  Added:
4
12
 
data/ext/pg_result.c CHANGED
@@ -1476,10 +1476,10 @@ pgresult_stream_any(VALUE self, void (*yielder)(VALUE, int, int, void*), void* d
1476
1476
 
1477
1477
  pgresult = gvl_PQgetResult(pgconn);
1478
1478
  if( pgresult == NULL )
1479
- rb_raise( rb_eNoResultError, "no result received - possibly an intersection with another result retrieval");
1479
+ rb_raise( rb_eNoResultError, "no result received - possibly an intersection with another query");
1480
1480
 
1481
1481
  if( nfields != PQnfields(pgresult) )
1482
- rb_raise( rb_eInvalidChangeOfResultFields, "number of fields must not change in single row mode");
1482
+ rb_raise( rb_eInvalidChangeOfResultFields, "number of fields changed in single row mode from %d to %d - this is a sign for intersection with another query", nfields, PQnfields(pgresult));
1483
1483
 
1484
1484
  this->pgresult = pgresult;
1485
1485
  }
data/lib/pg/connection.rb CHANGED
@@ -657,8 +657,8 @@ class PG::Connection
657
657
  # connection will have its +client_encoding+ set accordingly.
658
658
  #
659
659
  # Raises a PG::Error if the connection fails.
660
- def new(*args, **kwargs)
661
- conn = connect_to_hosts(*args, **kwargs)
660
+ def new(*args)
661
+ conn = connect_to_hosts(*args)
662
662
 
663
663
  if block_given?
664
664
  begin
data/lib/pg/exceptions.rb CHANGED
@@ -7,7 +7,7 @@ require 'pg' unless defined?( PG )
7
7
  module PG
8
8
 
9
9
  class Error < StandardError
10
- def initialize(msg, connection: nil, result: nil)
10
+ def initialize(msg=nil, connection: nil, result: nil)
11
11
  @connection = connection
12
12
  @result = result
13
13
  super(msg)
data/lib/pg/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module PG
2
2
  # Library version
3
- VERSION = '1.4.0'
3
+ VERSION = '1.4.1'
4
4
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Granger
@@ -36,7 +36,7 @@ cert_chain:
36
36
  oL1mUdzB8KrZL4/WbG5YNX6UTtJbIOu9qEFbBAy4/jtIkJX+dlNoFwd4GXQW1YNO
37
37
  nA==
38
38
  -----END CERTIFICATE-----
39
- date: 2022-06-20 00:00:00.000000000 Z
39
+ date: 2022-06-24 00:00:00.000000000 Z
40
40
  dependencies: []
41
41
  description: Pg is the Ruby interface to the PostgreSQL RDBMS. It works with PostgreSQL
42
42
  9.3 and later.
metadata.gz.sig CHANGED
Binary file