sequel_pg 1.8.0 → 1.8.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
  SHA1:
3
- metadata.gz: 12f6ab4a1eb1aefe52198b01d2b32ff5e1108dd3
4
- data.tar.gz: d70c53a25c1af4d132bf63c7887f096efa0754e3
3
+ metadata.gz: f6176615538367906099982221b8ee7e3670206b
4
+ data.tar.gz: df22060d2f8499be5e36cf648ea6434739fc0a80
5
5
  SHA512:
6
- metadata.gz: 0ed2744dc9f5e9620bf463ad85baca278b84a20ea0368f36e2c65243cb9cc38c1ea7746cce9c9b881d78ff26ee1ef35341f788a5d919f613aeebe32c3d11b470
7
- data.tar.gz: 59a2b4123aae9e61b025b1b9006c1f6700b5b876fd6de28bdbd27d2123c3d7d71e428ce559273a69a7376cd757658fb6960ff452ebb9dcf730e8bace0284b746
6
+ metadata.gz: de722caecb0c89001621cf0c90af63fb1d87ddfd8b67d64b2fb6cb604b190ee291702cac9df1ce697d23cac19f9e98aa2be91b8ebc14b9d26fb90d63f5412d6f
7
+ data.tar.gz: c934dfa9ab244d753ddc4cca531f29fdef4be57b755d0f07da38b62b9dc5503f7c99825f743bd22ff24aec46b00e6eb09d61fdfb30f9a1046c67913694268dbc
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ === 1.8.1 (2017-12-13)
2
+
3
+ * Fix issue when using Dataset#as_hash and Dataset#to_hash_groups with the null_dataset extension (jeremyevans)
4
+
1
5
  === 1.8.0 (2017-10-18)
2
6
 
3
7
  * Handle timezone offsets with seconds when parsing timestamps (jeremyevans)
@@ -32,7 +32,7 @@ sequel_pg also speeds up the following Dataset methods:
32
32
 
33
33
  * map
34
34
  * as_hash/to_hash
35
- * to_hash_groups,
35
+ * to_hash_groups
36
36
  * select_hash
37
37
  * select_hash_groups
38
38
  * select_map
@@ -66,10 +66,6 @@ can do the following:
66
66
 
67
67
  DB.stream_all_queries = true
68
68
 
69
- Note that pg 0.14.1+ is required for streaming to work. This is not
70
- required by the gem, as it is only a requirement for streaming, not
71
- for general use.
72
-
73
69
  == Installing the gem
74
70
 
75
71
  gem install sequel_pg
@@ -85,10 +81,6 @@ can find the PostgreSQL shared library and header files. Alternatively,
85
81
  you can use the POSTGRES_LIB and POSTGRES_INCLUDE environment
86
82
  variables to specify the shared library and header directories.
87
83
 
88
- While previous versions of this gem supported Windows, the current
89
- version does not, due to the need to call C functions defined
90
- in the pg gem.
91
-
92
84
  == Running the specs
93
85
 
94
86
  sequel_pg doesn't ship with it's own specs. It's designed to
@@ -144,8 +136,7 @@ sequel_pg has been tested on the following:
144
136
  result in incorrect date/timestamp handling. In addition to
145
137
  PostgreSQL defaulting to ISO, Sequel also manually sets the
146
138
  date format to ISO by default, so unless you are overriding that
147
- setting (via Sequel::Postgres.use_iso_date_format = false), you
148
- should be OK.
139
+ setting (via DB.use_iso_date_format = false), you should be OK.
149
140
  * Adding your own type conversion procs only has an effect if those
150
141
  types are not handled by default.
151
142
  * You do not need to require the library, the sequel postgres adapter
@@ -1,4 +1,4 @@
1
- #define SEQUEL_PG_VERSION_INTEGER 10800
1
+ #define SEQUEL_PG_VERSION_INTEGER 10801
2
2
 
3
3
  #include <string.h>
4
4
  #include <stdio.h>
@@ -45,6 +45,7 @@ class Sequel::Postgres::Dataset
45
45
  def as_hash(key_column, value_column = nil, opts = Sequel::OPTS)
46
46
  if value_column && !opts[:hash]
47
47
  clone(:_sequel_pg_type=>:hash, :_sequel_pg_value=>[key_column, value_column]).fetch_rows(sql){|s| return s}
48
+ {}
48
49
  elsif opts.empty?
49
50
  super(key_column, value_column)
50
51
  else
@@ -62,6 +63,7 @@ class Sequel::Postgres::Dataset
62
63
  def to_hash_groups(key_column, value_column = nil, opts = Sequel::OPTS)
63
64
  if value_column && !opts[:hash]
64
65
  clone(:_sequel_pg_type=>:hash_groups, :_sequel_pg_value=>[key_column, value_column]).fetch_rows(sql){|s| return s}
66
+ {}
65
67
  elsif opts.empty?
66
68
  super(key_column, value_column)
67
69
  else
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequel_pg
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.0
4
+ version: 1.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Evans
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-18 00:00:00.000000000 Z
11
+ date: 2017-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg