connection_manager 1.0.2 → 1.0.3
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 +8 -8
- data/CHANGE.md +4 -0
- data/lib/connection_manager/patches/cross_schema_patch.rb +7 -4
- data/lib/connection_manager/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MzFmOGFhMDMwNmVlMWJmZTkxNGUyOWY0NzMyZjQ0ZGI0MDZlOGE4MA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZWE0OTc3YjJhZTgwMWU2ZTAyYzlkNzBhZDM1MjZjYzU2OTNkNjU0NA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NDkzOTE4YzIyZTc2MWM5MjMyNzQ1ZTc3ZjUxYjlkYmYwYWE5N2UyMjYzODcw
|
10
|
+
MDFlZGNiMTRjOGRkMjViYTUwNjE4ZWRlYTFhYzkwOTQyYjJmOWU3ZDc1NzVj
|
11
|
+
OTg3OGQ4NDFiOTQzMjZmZjU0OGQxYWE0OWUzNzY1OThkYWY5ZjY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDkxN2VlYWIxODBkZGNlNjdkMWMyY2Q4NDRhN2NhMWVkZGIyOTgyM2QwNjEx
|
14
|
+
NmRhMDY1YWMxNjRkOGEyYjE2MDQwZTQ2Yjg2Y2Y5ZmVmZjk4Y2MzMWQxODBl
|
15
|
+
MTdkOWJlNTA0YzE3MmVlN2YzMGM1YzcwMjM3MmZiNTRiZTZiZjQ=
|
data/CHANGE.md
CHANGED
@@ -1,17 +1,20 @@
|
|
1
1
|
module ActiveRecord
|
2
2
|
class Base
|
3
3
|
class << self
|
4
|
-
|
5
|
-
|
6
|
-
|
4
|
+
# We want to make sure we get the full table name with schema
|
5
|
+
def arel_table # :nodoc:
|
6
|
+
begin
|
7
7
|
@arel_table ||= Arel::Table.new(quoted_table_name.to_s.gsub('`',''), arel_engine)
|
8
|
+
rescue ActiveRecord::ConnectionNotEstablished
|
9
|
+
Arel::Table.new(table_name, arel_engine)
|
8
10
|
end
|
9
11
|
end
|
10
12
|
|
11
13
|
private
|
12
|
-
|
14
|
+
|
13
15
|
# In a schema schema environment we want to set table name prefix
|
14
16
|
# to the schema_name + . if its not set already
|
17
|
+
alias :base_compute_table_name :compute_table_name
|
15
18
|
def compute_table_name
|
16
19
|
result = base_compute_table_name
|
17
20
|
if result.match(/^[^.]*$/) && connection.cross_schema_support?
|