embulk-output-sqlserver 0.8.6 → 0.8.7

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: 6a2b4419d9125103b0c560157271d356377bf3ed
4
- data.tar.gz: e9013fa22cecbc1c82980b2593fb104dc23630da
3
+ metadata.gz: 1420921c24d3aed30a1c3903aaaf0e4cef38b8dc
4
+ data.tar.gz: 4c3877cc13e65ab8fd73fd3b4796a63bafc70e15
5
5
  SHA512:
6
- metadata.gz: 1962baaf5f270e572fa52d3e482751270f8f5e1506864146628785f75c459caf790682f6641f32803ce58e012e9f71543a3c2a18c163203e3c999c89a46b2155
7
- data.tar.gz: f60384f6964fd889151f82e2c8b49b00b562bd28b10976593fe585f33f0c5c09c2979dcdaab1ae8f917bae6183a8e11e944e7bc013caf28c777939e791567a5f
6
+ metadata.gz: 095efffcc012490381213d0a615e51943eca03723adc9973e79e3622cb0d4d78cf982ab17efc9e711a04997295875c00bdd5bdbb47c9daf88105747b2845ef2e
7
+ data.tar.gz: 9918c29727abe90a56abd36d5107907f6b559a3597231733e21b341c8f7e29467dbd658119bff77a25370217738b2241d0ef3d9aa23dd0141c2889b311477447
@@ -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, loadTable.getTableName(), nativeDriverName, databaseEncoding);
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 bean loaded.", result));
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.6
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-08-22 00:00:00.000000000 Z
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.6.jar
23
- - classpath/embulk-output-sqlserver-0.8.6.jar
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