mirror of
https://github.com/alibaba/DataX.git
synced 2025-05-02 20:52:12 +08:00
Merge pull request #1540 from dingxiaobo/20221012_fix_clickhouse_writer
Fix click house writer.
This commit is contained in:
commit
dfa82f63dd
@ -68,7 +68,7 @@ public class ClickhouseWriter extends Writer {
|
||||
|
||||
this.commonRdbmsWriterSlave = new CommonRdbmsWriter.Task(DATABASE_TYPE) {
|
||||
@Override
|
||||
protected PreparedStatement fillPreparedStatementColumnType(PreparedStatement preparedStatement, int columnIndex, int columnSqltype, Column column) throws SQLException {
|
||||
protected PreparedStatement fillPreparedStatementColumnType(PreparedStatement preparedStatement, int columnIndex, int columnSqltype, String typeName, Column column) throws SQLException {
|
||||
try {
|
||||
if (column.getRawData() == null) {
|
||||
preparedStatement.setNull(columnIndex + 1, columnSqltype);
|
||||
|
@ -409,11 +409,6 @@ public class CommonRdbmsWriter {
|
||||
return preparedStatement;
|
||||
}
|
||||
|
||||
protected PreparedStatement fillPreparedStatementColumnType(PreparedStatement preparedStatement, int columnIndex,
|
||||
int columnSqltype, Column column) throws SQLException {
|
||||
return fillPreparedStatementColumnType(preparedStatement, columnIndex, columnSqltype, null, column);
|
||||
}
|
||||
|
||||
protected PreparedStatement fillPreparedStatementColumnType(PreparedStatement preparedStatement, int columnIndex,
|
||||
int columnSqltype, String typeName, Column column) throws SQLException {
|
||||
java.util.Date utilDate;
|
||||
|
Loading…
Reference in New Issue
Block a user