public static void setRecordToStatement(PreparedStatement upload, int[] typesArray, Row row) throws SQLException {
        setRecordToStatement(upload, typesArray, row, null);
    }
Adds a record to the prepared statement.

<p>When this method is called, the output format is guaranteed to be opened.

<p>WARNING: this may fail when no column types specified (because a best effort approach is attempted in order to
insert a null value but it's not guaranteed that the JDBC driver handles PreparedStatement.setObject(pos, null))

@param upload     The prepared statement.
@param typesArray The jdbc types of the row.
@param row        The records to add to the output.
@see PreparedStatement
rdb/rdb-sink/src/main/java/com/dtstack/flink/sql/sink/rdb/JDBCTypeConvertUtils.java