embulk-output-sqlserver 0.8.6 → 0.8.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/classpath/{embulk-output-jdbc-0.8.6.jar → embulk-output-jdbc-0.8.7.jar} +0 -0
- data/classpath/{embulk-output-sqlserver-0.8.6.jar → embulk-output-sqlserver-0.8.7.jar} +0 -0
- data/src/main/java/org/embulk/output/sqlserver/NativeBatchInsert.java +2 -1
- data/src/main/java/org/embulk/output/sqlserver/nativeclient/NativeClientWrapper.java +5 -4
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1420921c24d3aed30a1c3903aaaf0e4cef38b8dc
|
4
|
+
data.tar.gz: 4c3877cc13e65ab8fd73fd3b4796a63bafc70e15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 095efffcc012490381213d0a615e51943eca03723adc9973e79e3622cb0d4d78cf982ab17efc9e711a04997295875c00bdd5bdbb47c9daf88105747b2845ef2e
|
7
|
+
data.tar.gz: 9918c29727abe90a56abd36d5107907f6b559a3597231733e21b341c8f7e29467dbd658119bff77a25370217738b2241d0ef3d9aa23dd0141c2889b311477447
|
Binary file
|
Binary file
|
@@ -66,7 +66,8 @@ public class NativeBatchInsert implements BatchInsert
|
|
66
66
|
public void prepare(TableIdentifier loadTable, JdbcSchema insertSchema) throws SQLException
|
67
67
|
{
|
68
68
|
columnCount = insertSchema.getCount();
|
69
|
-
client.open(server, port, instance, database, user, password,
|
69
|
+
client.open(server, port, instance, database, user, password,
|
70
|
+
loadTable.getSchemaName(), loadTable.getTableName(), nativeDriverName, databaseEncoding);
|
70
71
|
formats = new DateFormat[insertSchema.getCount()];
|
71
72
|
for (int i = 0; i < insertSchema.getCount(); i++) {
|
72
73
|
JdbcColumn column = insertSchema.getColumn(i);
|
@@ -70,7 +70,7 @@ public class NativeClientWrapper
|
|
70
70
|
|
71
71
|
public void open(String server, int port, Optional<String> instance,
|
72
72
|
String database, Optional<String> user, Optional<String> password,
|
73
|
-
String table, Optional<String> nativeDriverName,
|
73
|
+
String schemaName, String table, Optional<String> nativeDriverName,
|
74
74
|
String databaseEncoding)
|
75
75
|
throws SQLException
|
76
76
|
{
|
@@ -141,8 +141,9 @@ public class NativeClientWrapper
|
|
141
141
|
StringBuilder fullTableName = new StringBuilder();
|
142
142
|
fullTableName.append("[");
|
143
143
|
fullTableName.append(database);
|
144
|
-
fullTableName.append("].");
|
145
|
-
fullTableName.append(
|
144
|
+
fullTableName.append("].[");
|
145
|
+
fullTableName.append(schemaName);
|
146
|
+
fullTableName.append("].[");
|
146
147
|
fullTableName.append(table);
|
147
148
|
fullTableName.append("]");
|
148
149
|
checkBCPResult("bcp_init", client.bcp_initW(
|
@@ -381,7 +382,7 @@ public class NativeClientWrapper
|
|
381
382
|
throwException(operation, NativeClient.FAIL);
|
382
383
|
} else {
|
383
384
|
if (result > 0) {
|
384
|
-
logger.info(String.format("SQL Server Native Client : %,d rows have
|
385
|
+
logger.info(String.format("SQL Server Native Client : %,d rows have been loaded.", result));
|
385
386
|
}
|
386
387
|
}
|
387
388
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embulk-output-sqlserver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sadayuki Furuhashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-23 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.8.
|
23
|
-
- classpath/embulk-output-sqlserver-0.8.
|
22
|
+
- classpath/embulk-output-jdbc-0.8.7.jar
|
23
|
+
- classpath/embulk-output-sqlserver-0.8.7.jar
|
24
24
|
- classpath/jtds-1.3.1.jar
|
25
25
|
- classpath/mssql-jdbc-7.2.2.jre8.jar
|
26
26
|
- lib/embulk/output/sqlserver.rb
|