embulk-output-postgresql 0.7.3 → 0.7.4
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e6b8490c586c3ed31c6046062730e0d25f96ba9
|
4
|
+
data.tar.gz: 9548fd542f96b21a622253b63122415f4ee1d803
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92dc738886c1b48dd1bcdf9680a175930726d7bea375de73b3c401c5b7a16b64ff5e0fc41a4685c600884a2bcc4a48b4924c2687e51c1152b96b6200d1496f50
|
7
|
+
data.tar.gz: 864a1dd24033f19c26b88fc866a14e94757459c829de10eafe6208f23b3946872204e753293cc7504d98b4b0c4ee4752b6a50e98f26c2992a67e9db1ee97ff65
|
Binary file
|
Binary file
|
@@ -52,9 +52,10 @@ public class PostgreSQLOutputConnection
|
|
52
52
|
sb.append("WITH S AS (");
|
53
53
|
sb.append("SELECT ");
|
54
54
|
for (int i = 0; i < schema.getCount(); i++) {
|
55
|
+
JdbcColumn column = schema.getColumn(i);
|
55
56
|
if (i != 0) { sb.append(", "); }
|
56
|
-
sb.append("? AS ");
|
57
|
-
quoteIdentifierString(sb,
|
57
|
+
sb.append("CAST(? AS " + column.getSimpleTypeName() + ") AS ");
|
58
|
+
quoteIdentifierString(sb, column.getName());
|
58
59
|
}
|
59
60
|
sb.append("),");
|
60
61
|
sb.append("updated AS (");
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embulk-output-postgresql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sadayuki Furuhashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Inserts or updates records to a table.
|
14
14
|
email:
|
@@ -19,8 +19,8 @@ extra_rdoc_files: []
|
|
19
19
|
files:
|
20
20
|
- README.md
|
21
21
|
- build.gradle
|
22
|
-
- classpath/embulk-output-jdbc-0.7.
|
23
|
-
- classpath/embulk-output-postgresql-0.7.
|
22
|
+
- classpath/embulk-output-jdbc-0.7.4.jar
|
23
|
+
- classpath/embulk-output-postgresql-0.7.4.jar
|
24
24
|
- classpath/postgresql-9.4-1205-jdbc41.jar
|
25
25
|
- lib/embulk/output/postgresql.rb
|
26
26
|
- src/main/java/org/embulk/output/PostgreSQLOutputPlugin.java
|