embulk-output-jdbc 0.7.1 → 0.7.2

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: 3f912491ce43b8714fa207c9751ce0732f1d860f
4
- data.tar.gz: 09361f2b0088b3df654a741018d99c7ee3256f05
3
+ metadata.gz: a6a84c1c471a0ee35fcdc0c963fe50fe083b6d12
4
+ data.tar.gz: c92e05174675c9350f28ec21306b82cb77e5c2e0
5
5
  SHA512:
6
- metadata.gz: 51aa4687726314754747e3513c3316182caf5bae198a9267699057b17cabe68ec3020451f804c0f9fa8b83d79d425c9ab7b3ea8689dd1c117819eca538c90dbe
7
- data.tar.gz: 8e37f62b9742d79b59a4637666bbcf9443fe8ea4fb92d4aa328e235c1ea0c30b764cb2e48124a865537852547f4474c32e3e9d181f306716c5fb7cdda694e13b
6
+ metadata.gz: f81cee609feed021db8d17dcb8004a22c8e9146e9b38ec66b34782071ec4c26c30458500afe941222c771c4b60e1f248e36a280eb2ce5185e52d2d7f9c899a72
7
+ data.tar.gz: ad347aef36467d414fd0480c709a5ce058c466e06a7ff498b1176fe48c4594cffc470e8c0cc69757ce83e5d75362e32d1fd408c83d526dd76a979e265d1e43ad
@@ -758,8 +758,11 @@ public abstract class AbstractJdbcOutputPlugin
758
758
  4000, 0, false, false)); // TODO size type param
759
759
  }
760
760
 
761
- public void jsonColumn(Column column) {
762
- throw new UnsupportedOperationException("This plugin doesn't support json type. Please try to upgrade version of the plugin using 'embulk gem update' command. If the latest version still doesn't support json type, please contact plugin developers, or change configuration of input plugin not to use json type.");
761
+ public void jsonColumn(Column column)
762
+ {
763
+ columns.add(JdbcColumn.newGenericTypeColumn(
764
+ columnName, Types.CLOB, "CLOB",
765
+ 4000, 0, false, false)); // TODO size type param
763
766
  }
764
767
 
765
768
  public void timestampColumn(Column column)
@@ -1,6 +1,5 @@
1
1
  package org.embulk.output.jdbc;
2
2
 
3
- import java.util.List;
4
3
  import java.util.Calendar;
5
4
  import java.io.IOException;
6
5
  import java.math.BigDecimal;
@@ -64,7 +63,9 @@ public class StandardBatchInsert
64
63
 
65
64
  public void close() throws IOException, SQLException
66
65
  {
67
- connection.close();
66
+ if (connection != null) {
67
+ connection.close();
68
+ }
68
69
  }
69
70
 
70
71
  public void flush() throws IOException, SQLException
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-output-jdbc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
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-11-25 00:00:00.000000000 Z
11
+ date: 2016-12-19 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Inserts or updates records to a table.
14
14
  email:
@@ -19,7 +19,7 @@ extra_rdoc_files: []
19
19
  files:
20
20
  - README.md
21
21
  - build.gradle
22
- - classpath/embulk-output-jdbc-0.7.1.jar
22
+ - classpath/embulk-output-jdbc-0.7.2.jar
23
23
  - lib/embulk/output/jdbc.rb
24
24
  - src/main/java/org/embulk/output/JdbcOutputPlugin.java
25
25
  - src/main/java/org/embulk/output/jdbc/AbstractJdbcOutputPlugin.java