private static boolean isPrimaryKeyField(int[] pkFieldIndices, int fieldIndex) {
        if (pkFieldIndices == null || pkFieldIndices.length <= 0) {
            return false;
        }
        for (int index : pkFieldIndices) {
            if (index == fieldIndex) {
                return true;
            }
        }
        return false;
    }
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