activerecord-sqlserver-adapter 3.1.4 → 3.1.5
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.
data/CHANGELOG
CHANGED
@@ -1,25 +1,30 @@
|
|
1
1
|
|
2
|
+
* 3.1.5 *
|
3
|
+
|
4
|
+
* Better support for orders with an expression. Fixes #155. [Jason Frey, Joe Rafaniello]
|
5
|
+
|
6
|
+
|
2
7
|
* 3.1.4 *
|
3
8
|
|
4
9
|
* Use INFORMATION_SCHEMA.KEY_COLUMN_USAGE for schema reflection speed.
|
5
10
|
Fixes #125. [Wüthrich Hannes @hwuethrich]
|
6
11
|
|
7
|
-
* New deadlock victim retry using the #retry_deadlock_victim config. [Joe Rafaniello]
|
12
|
+
* New deadlock victim retry using the #retry_deadlock_victim config. [Jason Frey, Joe Rafaniello]
|
8
13
|
|
9
14
|
* Renamed #with_auto_reconnect to #with_sqlserver_error_handling now that it handles both dropped
|
10
|
-
connections and deadlock victim errors. Fixes #150 [Joe Rafaniello]
|
15
|
+
connections and deadlock victim errors. Fixes #150 [Jason Frey, Joe Rafaniello]
|
11
16
|
|
12
|
-
* Add activity_stats method that mimics the SQL Server Activity Monitor. Fixes #146 [Joe Rafaniello]
|
17
|
+
* Add activity_stats method that mimics the SQL Server Activity Monitor. Fixes #146 [Jason Frey, Joe Rafaniello]
|
13
18
|
|
14
19
|
* Add methods for sqlserver's #product_version, #product_level, #edition and include them in inspect.
|
15
|
-
Fixes #145 [Joe Rafaniello]
|
20
|
+
Fixes #145 [Jason Frey, Joe Rafaniello]
|
16
21
|
|
17
22
|
* Handle statements that cannot be retried on a new database connection by not reconnecting.
|
18
|
-
Fixes #147 [Joe Rafaniello]
|
23
|
+
Fixes #147 [Jason Frey, Joe Rafaniello]
|
19
24
|
|
20
|
-
* Added connection#spid for debugging. Fixes #144 [Joe Rafaniello]
|
25
|
+
* Added connection#spid for debugging. Fixes #144 [Jason Frey, Joe Rafaniello]
|
21
26
|
|
22
|
-
* Add ENV['TEST_FILES'] to Rakefile for easy single case tests. [Joe Rafaniello]
|
27
|
+
* Add ENV['TEST_FILES'] to Rakefile for easy single case tests. [Jason Frey, Joe Rafaniello]
|
23
28
|
|
24
29
|
* Pass ActiveRecord tests. Made windowed distinct pass all orders to groups.
|
25
30
|
- test_limited_eager_with_multiple_order_columns
|
@@ -41,9 +41,12 @@ module Arel
|
|
41
41
|
x
|
42
42
|
when String
|
43
43
|
x.split(',').map do |s|
|
44
|
-
|
44
|
+
s = x if x.strip =~ /\A\b\w+\b\(.*,.*\)(\s+(ASC|DESC))?\Z/i # Allow functions with comma(s) to pass thru.
|
45
|
+
s.strip!
|
46
|
+
d = s =~ /(ASC|DESC)\Z/i ? $1.upcase : nil
|
47
|
+
e = d.nil? ? s : s.mb_chars[0...-d.length].strip
|
45
48
|
e = Arel.sql(e)
|
46
|
-
d
|
49
|
+
d && d == "DESC" ? Arel::Nodes::Descending.new(e) : Arel::Nodes::Ascending.new(e)
|
47
50
|
end
|
48
51
|
else
|
49
52
|
e = Arel.sql(x.to_s)
|
@@ -202,7 +205,7 @@ module Arel
|
|
202
205
|
source = "FROM #{visit(core.source).strip}" if core.source
|
203
206
|
if source && o.lock
|
204
207
|
lock = visit o.lock
|
205
|
-
index = source.match(/FROM [\w\[\]\.]+/)[0].length
|
208
|
+
index = source.match(/FROM [\w\[\]\.]+/)[0].mb_chars.length
|
206
209
|
source.insert index, " #{lock}"
|
207
210
|
else
|
208
211
|
source
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-sqlserver-adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 3.1.
|
9
|
+
- 5
|
10
|
+
version: 3.1.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ken Collins
|
@@ -19,7 +19,7 @@ autorequire:
|
|
19
19
|
bindir: bin
|
20
20
|
cert_chain: []
|
21
21
|
|
22
|
-
date: 2011-
|
22
|
+
date: 2011-12-27 00:00:00 Z
|
23
23
|
dependencies:
|
24
24
|
- !ruby/object:Gem::Dependency
|
25
25
|
name: activerecord
|
@@ -89,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
89
89
|
requirements: []
|
90
90
|
|
91
91
|
rubyforge_project: activerecord-sqlserver-adapter
|
92
|
-
rubygems_version: 1.8.
|
92
|
+
rubygems_version: 1.8.12
|
93
93
|
signing_key:
|
94
94
|
specification_version: 3
|
95
95
|
summary: SQL Server 2005 and 2008 Adapter For ActiveRecord.
|