laughingman7743 commented on code in PR #156:
URL: 
https://github.com/apache/flink-connector-jdbc/pull/156#discussion_r2529393874


##########
flink-connector-jdbc-core/src/main/java/org/apache/flink/connector/jdbc/statement/FieldNamedPreparedStatementImpl.java:
##########
@@ -170,6 +174,18 @@ public void setObject(int fieldIndex, Object x) throws 
SQLException {
         }
     }
 
+    @Override
+    public void setArray(int fieldIndex, Array x) throws SQLException {
+        for (int index : indexMapping[fieldIndex]) {
+            statement.setArray(index, x);
+        }
+    }
+
+    @Override
+    public Array createArrayOf(String typeName, Object[] elements) throws 
SQLException {
+        return connection.createArrayOf(typeName, elements);
+    }

Review Comment:
   These implementations are necessary to support writing to Array types.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to