pg 0.19.0.pre20160810143640 → 0.19.0.pre20160817083826

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
  SHA1:
3
- metadata.gz: 8b32bcccdfecb46972cf939f7a34bc786d65514a
4
- data.tar.gz: 705804c7955543a097d8f431193147b816dc1faf
3
+ metadata.gz: c49e1dff958fe6dd764cfaca8da5a8b5e73e4273
4
+ data.tar.gz: 641472a239e3b4b94d6d4a3bf4ccfeccc04833a4
5
5
  SHA512:
6
- metadata.gz: 86afbb468c8399d700456d8f4711203648f5ad1ad3d351ed9ca1353b90235681efa39c63e68e6b32ff2175f8318230379ddfdc9a0b6564ed2f84c2fa457d0d80
7
- data.tar.gz: a4489ac9a43ee05f6f73ef017ca2e12f2fa8e7a54057c14a30ee31650745ac36ebe15c8fb228848d6da7d83150ab8f59f456f16b3c8e8da8f927b72fb1f367bb
6
+ metadata.gz: 7b59477570b1d6201d05686f1335fd2ea24b57824a1f686925f7f9f12730a5a5a9fdd9492a85d9700bd2c4c3fd57979b28b09d6b9745af3b016713c379009b3a
7
+ data.tar.gz: aa58b0f6a12689e09eb95c514cdadd34591862aa3b0e70065ce06dc31a0d0a2dc6703883e4bf8fd385ac1eecffc8fc384dd728972d1896ad435e8901a3517ab4
data/ChangeLog CHANGED
@@ -1,8 +1,26 @@
1
- 2016-08-10 Michael Granger <ged@FaerieMUD.org>
1
+ 2016-08-14 Lars Kanis <lars@greiz-reinsdorf.de>
2
2
 
3
- * pg.gemspec:
4
- Bump the prerelease version in the gemspec
5
- [4b7121b112d8] [tip]
3
+ * Merge git master
4
+ [9b7987626074] [tip]
5
+
6
+ 2016-08-13 Lars Kanis <lars@greiz-reinsdorf.de>
7
+
8
+ * Rakefile.cross:
9
+ Update OpenSSL and PostgreSQL for binary Windows gems.
10
+ [edbd5b8dbb85]
11
+
12
+ * History.rdoc:
13
+ Update History.rdoc
14
+ [aca7b024ba0c]
15
+
16
+ * ext/gvl_wrappers.h, ext/pg_connection.c:
17
+ Release GVL while calling PQsetClientEncoding()
18
+
19
+ PQsetClientEncoding() is also called within PG::Connection.new which
20
+ could block due to network delay.
21
+
22
+ This fixes bitbucket issue #245 .
23
+ [41f81b72476f]
6
24
 
7
25
  2016-06-27 Michael Granger <ged@FaerieMUD.org>
8
26
 
@@ -1,3 +1,16 @@
1
+ == v0.19.0 [YYYY-MM-DD] Michael Granger <ged@FaerieMUD.org>
2
+
3
+ Enhancements:
4
+ - Respect and convert character encoding of all strings sent
5
+ to the server. #231
6
+ - Add PostgreSQL-9.5 functions PQsslInUse(), PQsslAttribute()
7
+ and PQsslAttributeNames().
8
+ - Various documentation fixes and improvements.
9
+
10
+ Bugfixes:
11
+ - Release GVL while calling PQsetClientEncoding(). #245
12
+
13
+
1
14
  == v0.18.4 [2015-11-13] Michael Granger <ged@FaerieMUD.org>
2
15
 
3
16
  Enhancements:
@@ -29,8 +29,8 @@ class CrossLibrary < OpenStruct
29
29
  self.host_platform = toolchain
30
30
 
31
31
  # Cross-compilation constants
32
- self.openssl_version = ENV['OPENSSL_VERSION'] || '1.0.2f'
33
- self.postgresql_version = ENV['POSTGRESQL_VERSION'] || '9.5.0'
32
+ self.openssl_version = ENV['OPENSSL_VERSION'] || '1.0.2h'
33
+ self.postgresql_version = ENV['POSTGRESQL_VERSION'] || '9.5.4'
34
34
 
35
35
  # Check if symlinks work in the current working directory.
36
36
  # This fails, if rake-compiler-dock is running on a Windows box.
@@ -195,6 +195,9 @@ extern void *rb_thread_call_without_gvl(void *(*func)(void *), void *data1,
195
195
  #define FOR_EACH_PARAM_OF_PQsendDescribePortal(param) \
196
196
  param(PGconn *, conn)
197
197
 
198
+ #define FOR_EACH_PARAM_OF_PQsetClientEncoding(param) \
199
+ param(PGconn *, conn)
200
+
198
201
  #define FOR_EACH_PARAM_OF_PQisBusy(param)
199
202
 
200
203
  #define FOR_EACH_PARAM_OF_PQcancel(param) \
@@ -226,6 +229,7 @@ extern void *rb_thread_call_without_gvl(void *(*func)(void *), void *data1,
226
229
  function(PQsendQueryPrepared, GVL_TYPE_NONVOID, int, int, resultFormat) \
227
230
  function(PQsendDescribePrepared, GVL_TYPE_NONVOID, int, const char *, stmt) \
228
231
  function(PQsendDescribePortal, GVL_TYPE_NONVOID, int, const char *, portal) \
232
+ function(PQsetClientEncoding, GVL_TYPE_NONVOID, int, const char *, encoding) \
229
233
  function(PQisBusy, GVL_TYPE_NONVOID, int, PGconn *, conn) \
230
234
  function(PQcancel, GVL_TYPE_NONVOID, int, int, errbufsize);
231
235
 
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * pg_connection.c - PG::Connection class extension
3
- * $Id: pg_connection.c,v e61a06f1f5ed 2015/12/25 21:14:21 lars $
3
+ * $Id: pg_connection.c,v 41f81b72476f 2016/08/13 19:24:45 lars $
4
4
  *
5
5
  */
6
6
 
@@ -2967,7 +2967,7 @@ pgconn_set_client_encoding(VALUE self, VALUE str)
2967
2967
 
2968
2968
  Check_Type(str, T_STRING);
2969
2969
 
2970
- if ( (PQsetClientEncoding(conn, StringValueCStr(str))) == -1 ) {
2970
+ if ( (gvl_PQsetClientEncoding(conn, StringValueCStr(str))) == -1 ) {
2971
2971
  rb_raise(rb_ePGerror, "invalid encoding name: %s",StringValueCStr(str));
2972
2972
  }
2973
2973
  #ifdef M17N_SUPPORTED
@@ -3629,7 +3629,7 @@ pgconn_internal_encoding_set(VALUE self, VALUE enc)
3629
3629
  rb_encoding *rbenc = rb_to_encoding( enc );
3630
3630
  const char *name = pg_get_rb_encoding_as_pg_encoding( rbenc );
3631
3631
 
3632
- if ( PQsetClientEncoding(pg_get_pgconn( self ), name) == -1 ) {
3632
+ if ( gvl_PQsetClientEncoding(pg_get_pgconn( self ), name) == -1 ) {
3633
3633
  VALUE server_encoding = pgconn_external_encoding( self );
3634
3634
  rb_raise( rb_eEncCompatError, "incompatible character encodings: %s and %s",
3635
3635
  rb_enc_name(rb_to_encoding(server_encoding)), name );
@@ -3689,7 +3689,7 @@ pgconn_set_default_encoding( VALUE self )
3689
3689
 
3690
3690
  if (( enc = rb_default_internal_encoding() )) {
3691
3691
  encname = pg_get_rb_encoding_as_pg_encoding( enc );
3692
- if ( PQsetClientEncoding(conn, encname) != 0 )
3692
+ if ( gvl_PQsetClientEncoding(conn, encname) != 0 )
3693
3693
  rb_warn( "Failed to set the default_internal encoding to %s: '%s'",
3694
3694
  encname, PQerrorMessage(conn) );
3695
3695
  pgconn_set_internal_encoding_index( self );
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: 0.19.0.pre20160810143640
4
+ version: 0.19.0.pre20160817083826
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Granger
@@ -30,7 +30,7 @@ cert_chain:
30
30
  hnfm736z8j1wvWddqf45++gwPpDr1E4zoAq2PgRl/WBNyR0hfoZLpi3TnHu3eC0x
31
31
  uALKNA==
32
32
  -----END CERTIFICATE-----
33
- date: 2016-08-10 00:00:00.000000000 Z
33
+ date: 2016-08-17 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: hoe-mercurial