Sha256: c91e4f0ac7a91b7cd66dd705f6c9d47841e65e7ee8d5aeb877a4eb3e1e8e4284
Contents?: true
Size: 864 Bytes
Versions: 17
Compression:
Stored size: 864 Bytes
Contents
package org.embulk.output.db2; import java.io.IOException; import java.sql.SQLException; import org.embulk.output.jdbc.MergeConfig; import org.embulk.output.jdbc.StandardBatchInsert; import com.google.common.base.Optional; public class DB2BatchInsert extends StandardBatchInsert { public DB2BatchInsert(DB2OutputConnector connector, Optional<MergeConfig> mergeConfig) throws IOException, SQLException { super(connector, mergeConfig); } @Override public void flush() throws IOException, SQLException { try { super.flush(); } catch (SQLException e) { if (e.getNextException() != null) { // SQLException of DB2 doesn't contain details. throw new SQLException(e.toString(), e.getNextException()); } throw e; } } }
Version data entries
17 entries across 17 versions & 1 rubygems