embulk-output-postgresql 0.6.3 → 0.6.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: f29ff2ddc2aeb88e408ca9e8c3d7ce00b2943f43
4
- data.tar.gz: eb4fa3c4d4347073f57c5507df8510fd2a3b833f
3
+ metadata.gz: 24387c2c6f8317667c4653da77fdd353f3b2d013
4
+ data.tar.gz: 74eac059aa41d696e21127bf911466d22ada1164
5
5
  SHA512:
6
- metadata.gz: 09f7e2f14479239d9c885d9bfafbd382d70ad3d1772ed3bcf0157ae158ff6fb1bbb5c90cecbd634e9dec7aee9ab9496658ec5388393296c4c828882efb0cc9e2
7
- data.tar.gz: cffbd6a27e9a615c49eab45e09d3436bb6bf281b5c9164e6b7b476a2a1bc84498ed0496662c6058f306af0a62ac6a08c1b81c92113ec9c454d3b40744e246599
6
+ metadata.gz: f088e77eedca1be76d25179b502fc29bf72784e1ecbd7bb583bb0a898112cd8b9cbba375517cf93628ce3fd3390cbe48525f0c3512999b11f179ce85456498e0
7
+ data.tar.gz: 57ca89f493b2c54e49590801dc12ce1461944b733533794bf4cbd2d081fb94f7dfc49617d17c476739e939acb444ca043318d4accaeb43f51d44412fa1f7a4c3
data/README.md CHANGED
@@ -22,7 +22,7 @@ PostgreSQL output plugins for Embulk loads records to PostgreSQL.
22
22
  - **retry_wait** initial retry wait time in milliseconds (integer, default: 1000 (1 second))
23
23
  - **max_retry_wait** upper limit of retry wait, which will be doubled at every retry (integer, default: 1800000 (30 minutes))
24
24
  - **mode**: "insert", "insert_direct", "truncate_insert", "replace" or "merge". See below. (string, required)
25
- - **merge_keys**: key column names for merging records in merge mode (string array, required in merge mode)
25
+ - **merge_keys**: key column names for merging records in merge mode (string array, required in merge mode if table doesn't have primary key)
26
26
  - **merge_rule**: list of column assignments for updating existing records used in merge mode, for example `foo = foo + S.foo`. (string array, default: always overwrites with new values)
27
27
  - **ssl**: enables SSL. data will be encrypted but CA or certification will not be verified (boolean, default: false)
28
28
  - **batch_size**: size of a single batch insert (integer, default: 16777216)
@@ -164,6 +164,12 @@ public class PostgreSQLOutputConnection
164
164
  return "TEXT";
165
165
  case "BLOB":
166
166
  return "BYTEA";
167
+ case "VARCHAR":
168
+ if (c.getDataLength() == Integer.MAX_VALUE) {
169
+ // getDataLength for varchar without length specifier will return 2147483647 .
170
+ // but cannot create column of varchar(2147483647) .
171
+ return "VARCHAR";
172
+ }
167
173
  default:
168
174
  return super.buildColumnTypeName(c);
169
175
  }
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.6.3
4
+ version: 0.6.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: 2016-08-18 00:00:00.000000000 Z
11
+ date: 2016-09-30 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Inserts or updates records to a table.
14
14
  email:
@@ -19,6 +19,9 @@ extra_rdoc_files: []
19
19
  files:
20
20
  - README.md
21
21
  - build.gradle
22
+ - classpath/embulk-output-jdbc-0.6.4.jar
23
+ - classpath/embulk-output-postgresql-0.6.4.jar
24
+ - classpath/postgresql-9.4-1205-jdbc41.jar
22
25
  - lib/embulk/output/postgresql.rb
23
26
  - src/main/java/org/embulk/output/PostgreSQLOutputPlugin.java
24
27
  - src/main/java/org/embulk/output/postgresql/AbstractPostgreSQLCopyBatchInsert.java
@@ -26,9 +29,6 @@ files:
26
29
  - src/main/java/org/embulk/output/postgresql/PostgreSQLOutputConnection.java
27
30
  - src/main/java/org/embulk/output/postgresql/PostgreSQLOutputConnector.java
28
31
  - src/main/java/org/embulk/output/postgresql/setter/PostgreSQLColumnSetterFactory.java
29
- - classpath/embulk-output-jdbc-0.6.3.jar
30
- - classpath/embulk-output-postgresql-0.6.3.jar
31
- - classpath/postgresql-9.4-1205-jdbc41.jar
32
32
  homepage: https://github.com/embulk/embulk-output-jdbc
33
33
  licenses:
34
34
  - Apache 2.0
@@ -39,17 +39,17 @@ require_paths:
39
39
  - lib
40
40
  required_ruby_version: !ruby/object:Gem::Requirement
41
41
  requirements:
42
- - - '>='
42
+ - - ">="
43
43
  - !ruby/object:Gem::Version
44
44
  version: '0'
45
45
  required_rubygems_version: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - '>='
47
+ - - ">="
48
48
  - !ruby/object:Gem::Version
49
49
  version: '0'
50
50
  requirements: []
51
51
  rubyforge_project:
52
- rubygems_version: 2.1.9
52
+ rubygems_version: 2.4.8
53
53
  signing_key:
54
54
  specification_version: 4
55
55
  summary: JDBC output plugin for Embulk