mirror of
https://github.com/alibaba/DataX.git
synced 2025-05-02 17:40:28 +08:00
issues-906
https://github.com/alibaba/DataX/issues/906 修复DataX-postgresqlwriter在写入postgresql主键bigserial类型报错
This commit is contained in:
parent
3f9e236329
commit
a60d1f5ef5
@ -69,6 +69,8 @@ public class PostgresqlWriter extends Writer {
|
|||||||
return "?::int";
|
return "?::int";
|
||||||
}else if("bit".equalsIgnoreCase(columnType)){
|
}else if("bit".equalsIgnoreCase(columnType)){
|
||||||
return "?::bit varying";
|
return "?::bit varying";
|
||||||
|
}else if("bigserial".equalsIgnoreCase(columnType)){
|
||||||
|
return "?::int8";
|
||||||
}
|
}
|
||||||
return "?::" + columnType;
|
return "?::" + columnType;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user