From bd0f0d3ad6871c0bb10623f93cd362e094e4dde8 Mon Sep 17 00:00:00 2001 From: Tetsuro Sano Date: Wed, 13 Mar 2024 19:27:48 +0900 Subject: [PATCH] Fix NString value to JSON --- .../java/org/embulk/output/jdbc/setter/NStringColumnSetter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embulk-output-jdbc/src/main/java/org/embulk/output/jdbc/setter/NStringColumnSetter.java b/embulk-output-jdbc/src/main/java/org/embulk/output/jdbc/setter/NStringColumnSetter.java index 1138f95c..a421621c 100644 --- a/embulk-output-jdbc/src/main/java/org/embulk/output/jdbc/setter/NStringColumnSetter.java +++ b/embulk-output-jdbc/src/main/java/org/embulk/output/jdbc/setter/NStringColumnSetter.java @@ -61,6 +61,6 @@ public void timestampValue(final Instant v) throws IOException, SQLException @Override public void jsonValue(Value v) throws IOException, SQLException { - defaultValue.setNString(); + batch.setNString(v.toJson()); } }