clickhouse-activerecord 1.0.8 → 1.0.9
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f32d998cd41ae14becbea5f03a9b83b996a6622808c49c124d466771825163d7
|
4
|
+
data.tar.gz: 3f49b195d406ce1a7b5ec2f50bba2e12fc37d2c0f4d312998f3ce2a3173ec88d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99195548b29bdc67139eff0537099c4ee6384efec7eaa5733cd0edbe6b6998ade9c1fcce775b3f8e576ad63ca9dc62a5626cb6b1d9e8d5fb0410611e264d0121
|
7
|
+
data.tar.gz: f9d9fd7a8d3be305447f5612da41fa4dffdfac2536b7015a3b8404395f143feb28ca08ac132c3bfe0bab9b73302e9a7fd59067754410ab629f20fb5280209aba
|
@@ -90,7 +90,9 @@ HEADER
|
|
90
90
|
unless simple
|
91
91
|
table_options = @connection.table_options(table)
|
92
92
|
if table_options.present?
|
93
|
-
|
93
|
+
table_options = format_options(table_options)
|
94
|
+
table_options.gsub!(/Buffer\('[^']+'/, 'Buffer(\'#{connection.database}\'')
|
95
|
+
tbl.print ", #{table_options}"
|
94
96
|
end
|
95
97
|
end
|
96
98
|
|
@@ -138,7 +140,7 @@ HEADER
|
|
138
140
|
|
139
141
|
def format_options(options)
|
140
142
|
if options && options[:options]
|
141
|
-
options[:options]
|
143
|
+
options[:options].gsub!(/^Replicated(.*?)\('[^']+',\s*'[^']+',?\s?([^\)]*)?\)/, "\\1(\\2)")
|
142
144
|
end
|
143
145
|
super
|
144
146
|
end
|