pgsql 1.10 → 1.11

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/conn_quote.c +5 -3
  3. data/lib/module.c +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d5e250aaea34af2f5b9f76ebb8d6ef7d590836e8826dd189ef9c1721a8aced6b
4
- data.tar.gz: e24f7f58eb083c0c95c544ac72ed17c8423759fc335798ce8957e8c085262fab
3
+ metadata.gz: aaad688317e575d2b1565921d70552592fbcbef1bb4f1d74dc95a6fa970f2d92
4
+ data.tar.gz: 1dff27f0113714e7b9bec61b708eed5bd88f84ef7591feff007c6ec43daea6e9
5
5
  SHA512:
6
- metadata.gz: 62aea91052765eb84cbedae7140e05574cc919eb53a18123a5b9818f58cd188b7bad70c17ebb175019056db33f46da6c810fd1483b78694680338a51cd88ba37
7
- data.tar.gz: 86eb5356770eea1bbd0a66151f49ba61d6c221a4cdfcc2f86d11c5982c6fe6adc9d0d0a41ca9d128bd2796c07c40a0305d6828be80df509b0b933bc765bbeac8
6
+ metadata.gz: 4aac689cc511df37143ebe373089506881e304c5a534ab7539c1d0400ad458057d1b93c99e941fb1ec0b8d09b0ddf4a55e9ff87dad2e7eed6697443d31fa3e86
7
+ data.tar.gz: c0aca5b3a88b9bdcd114c9451312a1157cf535b0254db1a07869afb7ad2916c0096464f6b0591e54ea5ca7ef19a8b2a5e4ad17aae0dd422a609dc372c64590ca
data/lib/conn_quote.c CHANGED
@@ -72,14 +72,16 @@ pg_monetary_class( void)
72
72
  {
73
73
  if (lookup_monetary) {
74
74
  ID id_MONEY = rb_intern( "Money");
75
- if (rb_const_defined( rb_mPg, id_MONEY))
76
- rb_cMoney = rb_const_get( rb_mPg, id_MONEY);
75
+ if (rb_const_defined_at( rb_mPg, id_MONEY))
76
+ rb_cMoney = rb_const_get_at( rb_mPg, id_MONEY);
77
77
  else {
78
78
  int i;
79
79
  for (i = 0; i < (sizeof monetary) / sizeof (char *) && NIL_P( rb_cMoney); i++) {
80
80
  ID id = rb_intern( monetary[ i]);
81
- if (rb_const_defined( rb_cObject, id))
81
+ if (rb_const_defined( rb_cObject, id)) {
82
82
  rb_cMoney = rb_const_get( rb_cObject, id);
83
+ break;
84
+ }
83
85
  }
84
86
  rb_const_set( rb_mPg, id_MONEY, rb_cMoney);
85
87
  }
data/lib/module.c CHANGED
@@ -8,7 +8,7 @@
8
8
  #include "result.h"
9
9
 
10
10
 
11
- #define PGSQL_VERSION "1.10"
11
+ #define PGSQL_VERSION "1.11"
12
12
 
13
13
 
14
14
  VALUE rb_mPg;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pgsql
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.10'
4
+ version: '1.11'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bertram Scharpf