embulk-output-cdata 0.3.3 → 0.3.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: 68d9df61354ee1371c25b674abc9645f628a09cc
4
- data.tar.gz: bd325f4e7ba5d0614ee5ba275131273894a708ed
3
+ metadata.gz: 6f2031c04f4a622373cbb14b248c8c38650d0483
4
+ data.tar.gz: 9fee98da33876dc3e8a22f89dfe23ba802cdc717
5
5
  SHA512:
6
- metadata.gz: 2a59f5082958068b786731a2c54edd53cf0b71c4b700e4a1c5d9bc93b60223c40e70dd615d048c1bfc276662de9c103169585e9e28781f8197da66c28c6f07b5
7
- data.tar.gz: 7a46a6475de051f5ff6a63303eb9d870f3667c6bf9f5a6550e6568a8d5bf722b5f1a6cfdd38a4eb656c02139fd89831d45bd00f06596be8c8db7488189937bf3
6
+ metadata.gz: 7c4eabc9a60cc5760195a6a32cbf8c59bd4c5cecf1fcfa4daea36264d2f3e6c03e1bcba405fc68cca7bf562b7fb5e3ef9c5cc2cc4197732a8ff81ce278c10e47
7
+ data.tar.gz: 2b2731fbc43c274b61a683ce13c3141633c435683b91c717c5823e37c08cc28fca70aeb0bb11ef2f93af9fffd5d22527db27281214bbf4d09c152f0fbe6a8398
data/build.gradle CHANGED
@@ -13,7 +13,7 @@ configurations {
13
13
  provided
14
14
  }
15
15
 
16
- version = "0.3.3"
16
+ version = "0.3.4"
17
17
 
18
18
  sourceCompatibility = 1.8
19
19
  targetCompatibility = 1.8
@@ -81,7 +81,7 @@ public class CDataPageOutputForUpdate implements TransactionalPageOutput {
81
81
  @Override
82
82
  public void booleanColumn(Column column) {
83
83
  try {
84
- if (pageReader.getString(column) == null) {
84
+ if (pageReader.isNull(column)) {
85
85
  preparedStatement.setObject(column.getIndex() + 2, null);
86
86
  } else {
87
87
  preparedStatement.setBoolean(column.getIndex() + 2, pageReader.getBoolean(column));
@@ -94,7 +94,7 @@ public class CDataPageOutputForUpdate implements TransactionalPageOutput {
94
94
  @Override
95
95
  public void longColumn(Column column) {
96
96
  try {
97
- if (pageReader.getString(column) == null) {
97
+ if (pageReader.isNull(column)) {
98
98
  preparedStatement.setObject(column.getIndex() + 2, null);
99
99
  } else {
100
100
  preparedStatement.setLong(column.getIndex() + 2, pageReader.getLong(column));
@@ -107,7 +107,7 @@ public class CDataPageOutputForUpdate implements TransactionalPageOutput {
107
107
  @Override
108
108
  public void doubleColumn(Column column) {
109
109
  try {
110
- if (pageReader.getString(column) == null) {
110
+ if (pageReader.isNull(column)) {
111
111
  preparedStatement.setObject(column.getIndex() + 2, null);
112
112
  } else {
113
113
  preparedStatement.setDouble(column.getIndex() + 2, pageReader.getDouble(column));
@@ -123,7 +123,7 @@ public class CDataPageOutputForUpdate implements TransactionalPageOutput {
123
123
  if (Objects.equals(column.getName(), task.getExternalIdColumn())) {
124
124
  currentExternalIdColumn = pageReader.getString(column);
125
125
  }
126
- if (pageReader.getString(column) == null) {
126
+ if (pageReader.isNull(column)) {
127
127
  preparedStatement.setObject(column.getIndex() + 2, null);
128
128
  } else {
129
129
  preparedStatement.setString(column.getIndex() + 2, pageReader.getString(column));
@@ -136,7 +136,7 @@ public class CDataPageOutputForUpdate implements TransactionalPageOutput {
136
136
  @Override
137
137
  public void timestampColumn(Column column) {
138
138
  try {
139
- if (pageReader.getString(column) == null) {
139
+ if (pageReader.isNull(column)) {
140
140
  preparedStatement.setObject(column.getIndex() + 2, null);
141
141
  } else {
142
142
  preparedStatement.setTimestamp(column.getIndex() + 2, Timestamp.from(pageReader.getTimestampInstant(column)));
@@ -149,7 +149,7 @@ public class CDataPageOutputForUpdate implements TransactionalPageOutput {
149
149
  @Override
150
150
  public void jsonColumn(Column column) {
151
151
  try {
152
- if (pageReader.getString(column) == null) {
152
+ if (pageReader.isNull(column)) {
153
153
  preparedStatement.setObject(column.getIndex() + 2, null);
154
154
  } else {
155
155
  preparedStatement.setString(column.getIndex() + 2, pageReader.getString(column));
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-output-cdata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - sampo02
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-05 00:00:00.000000000 Z
11
+ date: 2022-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -49,7 +49,7 @@ files:
49
49
  - LICENSE.txt
50
50
  - README.md
51
51
  - build.gradle
52
- - classpath/embulk-output-cdata-0.3.3.jar
52
+ - classpath/embulk-output-cdata-0.3.4.jar
53
53
  - config/checkstyle/checkstyle.xml
54
54
  - config/checkstyle/default.xml
55
55
  - gradle/wrapper/gradle-wrapper.jar