pg 1.4.4-x64-mingw-ucrt → 1.4.5-x64-mingw-ucrt

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: 93015da5c2a1828248ea58ea84210d0e0cc3b637cabbe05a7df149df39abfb51
4
- data.tar.gz: 9411741276f87b9aff595b1d2f20ce624c9e9a0a6c0c17b9815994aa4ee70caa
3
+ metadata.gz: 0c848f967330be1198edcf3722a7fd251863cce06d2f4456feeb2cf27301ac34
4
+ data.tar.gz: 3dedfc29a5f11f281977f5a583b54d5f146c29cc4e47493e0a07430ac7482679
5
5
  SHA512:
6
- metadata.gz: 1f81e2b66ac210a1aafaa2d853be224ce9f98c490a2922fb05657fc7061774b55cfd8a752d144dfb550c5abd7aecd8f415e4f77954949ab97e6ef3bb8d15b94f
7
- data.tar.gz: 56c08d9b66245d68f5d19f696734f363b292e81edd6a265b1f6f8c07756afd04996ea38d6aad26afe05bf0d638b5cc97447e8355c9af9723637ada79ab37e97f
6
+ metadata.gz: 40b25ee6e57bf8ae553de941a2d49ec37d9c408f4f6f6fa8015719a75d145905030e00067e3b685a9a93ef586330e34550cb6b005288e852d64ae83650e061ed
7
+ data.tar.gz: 6edaca174719e192975763481bfbac757de5af8680bd39c3ce912b606815104889fa616bff776a7c96960f2e7035f2d244c96656c90d4502d18b5bee82a5af18
checksums.yaml.gz.sig CHANGED
Binary file
@@ -45,7 +45,7 @@ jobs:
45
45
  include:
46
46
  - ruby: "3.1"
47
47
  platform: "x64-mingw-ucrt"
48
- PGVERSION: 15.0-rc1-windows-x64
48
+ PGVERSION: 15.1-1-windows-x64
49
49
  - ruby: "2.5"
50
50
  platform: "x64-mingw32"
51
51
  PGVERSION: 10.20-1-windows
@@ -31,15 +31,15 @@ jobs:
31
31
  include:
32
32
  - os: windows
33
33
  ruby: "head"
34
- PGVERSION: 15.0-rc1-windows-x64
35
- PGVER: "14"
34
+ PGVERSION: 15.1-1-windows-x64
35
+ PGVER: "15"
36
36
  - os: windows
37
37
  ruby: "2.5"
38
38
  PGVERSION: 9.4.26-1-windows-x64
39
39
  PGVER: "9.4"
40
40
  - os: ubuntu
41
41
  ruby: "head"
42
- PGVER: "14"
42
+ PGVER: "15"
43
43
  - os: ubuntu
44
44
  ruby: "3.1"
45
45
  PGVER: "12"
@@ -51,11 +51,11 @@ jobs:
51
51
  PGVER: "13"
52
52
  - os: ubuntu
53
53
  ruby: "truffleruby-head"
54
- PGVER: "14"
54
+ PGVER: "15"
55
55
  - os: macos
56
56
  ruby: "head"
57
- PGVERSION: 13.8-1-osx
58
- PGVER: "13"
57
+ PGVERSION: 15.1-1-osx
58
+ PGVER: "15"
59
59
 
60
60
  runs-on: ${{ matrix.os }}-latest
61
61
  env:
data/History.rdoc CHANGED
@@ -1,3 +1,12 @@
1
+ == v1.4.5 [2022-11-17] Lars Kanis <lars@greiz-reinsdorf.de>
2
+
3
+ - Return the libpq default port when blank in conninfo. #492
4
+ - Add PG::DEF_PGPORT constant and use it in specs. #492
5
+ - Fix name resolution when empty or `nil` port is given.
6
+ - Update error codes to PostgreSQL-15.
7
+ - Update Windows fat binary gem to PostgreSQL-15.1 AND OpenSSL-1.1.1s.
8
+
9
+
1
10
  == v1.4.4 [2022-10-11] Lars Kanis <lars@greiz-reinsdorf.de>
2
11
 
3
12
  - Revert to let libpq do the host iteration while connecting. #485
data/Rakefile CHANGED
@@ -92,7 +92,7 @@ end
92
92
 
93
93
  desc "Update list of server error codes"
94
94
  task :update_error_codes do
95
- URL_ERRORCODES_TXT = "http://git.postgresql.org/gitweb/?p=postgresql.git;a=blob_plain;f=src/backend/utils/errcodes.txt;hb=refs/tags/REL_14_0"
95
+ URL_ERRORCODES_TXT = "http://git.postgresql.org/gitweb/?p=postgresql.git;a=blob_plain;f=src/backend/utils/errcodes.txt;hb=refs/tags/REL_15_0"
96
96
 
97
97
  ERRORCODES_TXT = "ext/errorcodes.txt"
98
98
  sh "wget #{URL_ERRORCODES_TXT.inspect} -O #{ERRORCODES_TXT.inspect} || curl #{URL_ERRORCODES_TXT.inspect} -o #{ERRORCODES_TXT.inspect}"
data/Rakefile.cross CHANGED
@@ -31,8 +31,8 @@ class CrossLibrary < OpenStruct
31
31
  self.host_platform = toolchain
32
32
 
33
33
  # Cross-compilation constants
34
- self.openssl_version = ENV['OPENSSL_VERSION'] || '1.1.1q'
35
- self.postgresql_version = ENV['POSTGRESQL_VERSION'] || '14.5'
34
+ self.openssl_version = ENV['OPENSSL_VERSION'] || '1.1.1s'
35
+ self.postgresql_version = ENV['POSTGRESQL_VERSION'] || '15.1'
36
36
 
37
37
  # Check if symlinks work in the current working directory.
38
38
  # This fails, if rake-compiler-dock is running on a Windows box.
data/ext/errorcodes.def CHANGED
@@ -366,6 +366,10 @@
366
366
  VALUE klass = define_error_class( "SqlJsonScalarRequired", "22" );
367
367
  register_error_class( "2203F", klass );
368
368
  }
369
+ {
370
+ VALUE klass = define_error_class( "SqlJsonItemCannotBeCastToTargetType", "22" );
371
+ register_error_class( "2203G", klass );
372
+ }
369
373
  {
370
374
  VALUE klass = define_error_class( "IntegrityConstraintViolation", NULL );
371
375
  register_error_class( "23000", klass );
data/ext/errorcodes.txt CHANGED
@@ -2,7 +2,7 @@
2
2
  # errcodes.txt
3
3
  # PostgreSQL error codes
4
4
  #
5
- # Copyright (c) 2003-2021, PostgreSQL Global Development Group
5
+ # Copyright (c) 2003-2022, PostgreSQL Global Development Group
6
6
  #
7
7
  # This list serves as the basis for generating source files containing error
8
8
  # codes. It is kept in a common format to make sure all these source files have
@@ -222,6 +222,7 @@ Section: Class 22 - Data Exception
222
222
  2203D E ERRCODE_TOO_MANY_JSON_ARRAY_ELEMENTS too_many_json_array_elements
223
223
  2203E E ERRCODE_TOO_MANY_JSON_OBJECT_MEMBERS too_many_json_object_members
224
224
  2203F E ERRCODE_SQL_JSON_SCALAR_REQUIRED sql_json_scalar_required
225
+ 2203G E ERRCODE_SQL_JSON_ITEM_CANNOT_BE_CAST_TO_TARGET_TYPE sql_json_item_cannot_be_cast_to_target_type
225
226
 
226
227
  Section: Class 23 - Integrity Constraint Violation
227
228
 
data/ext/pg.c CHANGED
@@ -679,6 +679,9 @@ Init_pg_ext(void)
679
679
  rb_define_const(rb_mPGconstants, "INVALID_OID", INT2FIX(InvalidOid));
680
680
  rb_define_const(rb_mPGconstants, "InvalidOid", INT2FIX(InvalidOid));
681
681
 
682
+ /* PostgreSQL compiled in default port */
683
+ rb_define_const(rb_mPGconstants, "DEF_PGPORT", INT2FIX(DEF_PGPORT));
684
+
682
685
  /* Add the constants to the toplevel namespace */
683
686
  rb_include_module( rb_mPG, rb_mPGconstants );
684
687
 
data/ext/pg_connection.c CHANGED
@@ -702,7 +702,10 @@ static VALUE
702
702
  pgconn_port(VALUE self)
703
703
  {
704
704
  char* port = PQport(pg_get_pgconn(self));
705
- return INT2NUM(atoi(port));
705
+ if (!port || port[0] == '\0')
706
+ return INT2NUM(DEF_PGPORT);
707
+ else
708
+ return INT2NUM(atoi(port));
706
709
  }
707
710
 
708
711
  /*
data/lib/3.1/pg_ext.so CHANGED
Binary file
data/lib/pg/connection.rb CHANGED
@@ -723,6 +723,7 @@ class PG::Connection
723
723
  # This requires PostgreSQL-10+, so no DNS resolving is done on earlier versions.
724
724
  ihosts = iopts[:host].split(",", -1)
725
725
  iports = iopts[:port].split(",", -1)
726
+ iports = [nil] if iports.size == 0
726
727
  iports = iports * ihosts.size if iports.size == 1
727
728
  raise PG::ConnectionBad, "could not match #{iports.size} port numbers to #{ihosts.size} hosts" if iports.size != ihosts.size
728
729
 
data/lib/pg/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module PG
2
2
  # Library version
3
- VERSION = '1.4.4'
3
+ VERSION = '1.4.5'
4
4
  end
Binary file
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.4
4
+ version: 1.4.5
5
5
  platform: x64-mingw-ucrt
6
6
  authors:
7
7
  - Michael Granger
@@ -30,7 +30,7 @@ cert_chain:
30
30
  sc3NyOkGUGdfiee5VRG31Sh3LLON3YGED+zZAS+ZF6598y4vhv8MBLa1Oy357byC
31
31
  tTg=
32
32
  -----END CERTIFICATE-----
33
- date: 2022-10-11 00:00:00.000000000 Z
33
+ date: 2022-11-17 00:00:00.000000000 Z
34
34
  dependencies: []
35
35
  description: Pg is the Ruby interface to the PostgreSQL RDBMS. It works with PostgreSQL
36
36
  9.3 and later.
metadata.gz.sig CHANGED
Binary file