activerecord-sqlserver-adapter 4.2.16 → 4.2.17

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: 7c7985b6dcbd1c96d62b6c252bd260826c5689fa
4
- data.tar.gz: 3708a1600a2c515ff4f7605c45079728c10fe254
3
+ metadata.gz: 1f3710cca4199d458c3582679a22346641e2ea3a
4
+ data.tar.gz: cd58d819ea28e6a1acfd168c5f9d3720e3d3a53b
5
5
  SHA512:
6
- metadata.gz: edd7abf4c1cf08d0caf66bae13b7cce3bb715b273572d08e60e8527f671b22c7a2b8ae04164a17b4855960eaf5931c701e01ff35f96aa780828ac68f2aaac843
7
- data.tar.gz: e744b5c9cb0969436ae7dbb122f6c9de5ee955b4ca776c7696bc1ecfa6b21addbc604f6f360d47ba1790ee77d9bd2578502d2884380d0a71a572eb041d2159a3
6
+ metadata.gz: f40dffb58641d640658c7750bfcedfe3fb35a65d7d029ed66c53701b65766a8b9ed9da63eb0442905a174343881e594a4dd8aaf00a4390ca2487b00368c16c2e
7
+ data.tar.gz: f6bf0939e3a0cd7c1480839675fc8a57ae376985413fa73c6f137682ba329566b9187699efbb8762c82582ae4e9ead22fd08dc8915dc7b947bd3087012f1c21b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## v4.2.17
2
+
3
+ #### Changed
4
+
5
+ * The `user_options` parsing. Works for hash/array. Fixes #535
6
+
7
+
1
8
  ## v4.2.16
2
9
 
3
10
  #### Fixed
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.2.16
1
+ 4.2.17
@@ -154,7 +154,9 @@ module ActiveRecord
154
154
 
155
155
  def user_options
156
156
  return {} if sqlserver_azure?
157
- select_rows('dbcc useroptions', 'SCHEMA').reduce(HashWithIndifferentAccess.new) do |values, row|
157
+ rows = select_rows('dbcc useroptions', 'SCHEMA')
158
+ rows = rows.first if rows.size == 2 && rows.last.empty?
159
+ rows.reduce(HashWithIndifferentAccess.new) do |values, row|
158
160
  if row.instance_of? Hash
159
161
  set_option = row.values[0].gsub(/\s+/, '_')
160
162
  user_value = row.values[1]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-sqlserver-adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.16
4
+ version: 4.2.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Collins
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2017-01-24 00:00:00.000000000 Z
17
+ date: 2017-01-31 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: activerecord