firebird_adapter 5.0.0 → 6.0.0
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d16fdcec64294ee89e80963f70014774ca1e4ebe1689c567fd8797e2aed941e4
|
4
|
+
data.tar.gz: fd636ff0a5c785e5f72cfc7feb03b84204c8528b1b87cc63b7bdff6f6fb5c140
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 513b0ecade7b01947daca7d843abbcdda4a69adc636dae2666b3a17755df083a578500e502949f94d9acfa4c04b3e7a312dea28c65f18e96c0db0f15cf7d1625
|
7
|
+
data.tar.gz: 93c436220c68e31ef6b06c11132fa1bfb7975fe3f5d34aa95aa6ba0e1970f535e3a8129d2c4acd22c49589e332daa145765b322f9bda7c94a5ff1071d6886f8c
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'active_support/core_ext/string/strip'
|
2
|
+
|
1
3
|
module ActiveRecord::ConnectionAdapters::Firebird::SchemaStatements
|
2
4
|
|
3
5
|
def tables(_name = nil)
|
@@ -42,8 +44,8 @@ module ActiveRecord::ConnectionAdapters::Firebird::SchemaStatements
|
|
42
44
|
end
|
43
45
|
end
|
44
46
|
|
45
|
-
def remove_index(table_name, options = {})
|
46
|
-
index_name = index_name_for_remove(table_name, options)
|
47
|
+
def remove_index(table_name, column, options = {})
|
48
|
+
index_name = index_name_for_remove(table_name, column, options)
|
47
49
|
execute "DROP INDEX #{quote_column_name(index_name)}"
|
48
50
|
end
|
49
51
|
|
@@ -16,24 +16,23 @@ module Arel
|
|
16
16
|
|
17
17
|
visit_Arel_Nodes_SelectOptions(select_statement, collector)
|
18
18
|
|
19
|
-
collector =
|
20
|
-
|
19
|
+
collector = collect_optimizer_hints(o, collector)
|
21
20
|
collector = maybe_visit o.set_quantifier, collector
|
22
21
|
|
23
|
-
collect_nodes_for o.projections, collector,
|
22
|
+
collect_nodes_for o.projections, collector, ' '
|
24
23
|
|
25
24
|
if o.source && !o.source.empty?
|
26
25
|
collector << ' FROM '
|
27
26
|
collector = visit o.source, collector
|
28
27
|
end
|
29
28
|
|
30
|
-
collect_nodes_for o.wheres, collector, WHERE, AND
|
31
|
-
collect_nodes_for o.groups, collector,
|
29
|
+
collect_nodes_for o.wheres, collector, ' WHERE ', ' AND '
|
30
|
+
collect_nodes_for o.groups, collector, ' GROUP BY '
|
32
31
|
unless o.havings.empty?
|
33
32
|
collector << ' HAVING '
|
34
|
-
inject_join o.havings, collector, AND
|
33
|
+
inject_join o.havings, collector, ' AND '
|
35
34
|
end
|
36
|
-
collect_nodes_for o.windows, collector, WINDOW
|
35
|
+
collect_nodes_for o.windows, collector, ' WINDOW '
|
37
36
|
|
38
37
|
collector
|
39
38
|
end
|
@@ -41,7 +40,7 @@ module Arel
|
|
41
40
|
def visit_Arel_Nodes_SelectStatement o, collector
|
42
41
|
if o.with
|
43
42
|
collector = visit o.with, collector
|
44
|
-
collector <<
|
43
|
+
collector << ' '
|
45
44
|
end
|
46
45
|
|
47
46
|
collector = o.cores.inject(collector) { |c,x|
|
@@ -49,11 +48,11 @@ module Arel
|
|
49
48
|
}
|
50
49
|
|
51
50
|
unless o.orders.empty?
|
52
|
-
collector <<
|
51
|
+
collector << ' ORDER BY '
|
53
52
|
len = o.orders.length - 1
|
54
53
|
o.orders.each_with_index { |x, i|
|
55
54
|
collector = visit(x, collector)
|
56
|
-
collector <<
|
55
|
+
collector << ', ' unless len == i
|
57
56
|
}
|
58
57
|
end
|
59
58
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: firebird_adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 6.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fábio Rodrigues
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '6.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '6.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: fb
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 2.1.4
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 2.1.4
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -136,7 +136,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
136
136
|
requirements:
|
137
137
|
- - "~>"
|
138
138
|
- !ruby/object:Gem::Version
|
139
|
-
version: '2.
|
139
|
+
version: '2.7'
|
140
140
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
141
141
|
requirements:
|
142
142
|
- - ">="
|
@@ -146,5 +146,5 @@ requirements: []
|
|
146
146
|
rubygems_version: 3.0.3
|
147
147
|
signing_key:
|
148
148
|
specification_version: 4
|
149
|
-
summary: ActiveRecord Firebird Adapter for Rails
|
149
|
+
summary: ActiveRecord Firebird Adapter for Rails 6.
|
150
150
|
test_files: []
|