datapipe2 0.0.17 → 0.0.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fns/db_to_pgsql.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e0653459850514cfa5e9b61eb180ca353b5b05f
|
4
|
+
data.tar.gz: d8085dccd6fa2b02e4a50c464fb564264b984680
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2635ae652f04f6232072eb040ae26adf5c4585e471166c409ccdc3edb2753f523a35c02101c6f34e9384973a8b8ec28dfc0ca336b73429d5aee7ffa73e2a0bd5
|
7
|
+
data.tar.gz: 2d38c675f2c7bd9eafc5c296ed8ac9552893dfe49f4c12ff7d17a57da7ec71c63211892fc50ccb78ddf7c27e5d21679dcf73409c93ef95b0814e99f49114623b
|
data/lib/fns/db_to_pgsql.rb
CHANGED
@@ -17,7 +17,7 @@ def db_to_pgsql(select_sql, table_name, columns)
|
|
17
17
|
rst.each do |r|
|
18
18
|
count += 1
|
19
19
|
print '.' if count % 100_000 == 0
|
20
|
-
d.connection.put_copy_data "#{r.join('|')}\n"
|
20
|
+
d.connection.put_copy_data "#{r.values.join('|')}\n"
|
21
21
|
end
|
22
22
|
puts ""
|
23
23
|
d.connection.put_copy_end
|