add ob jar files.

This commit is contained in:
江煦 2021-05-20 19:49:06 +08:00
parent d3bd2c5fcf
commit 6061010e00
4 changed files with 16 additions and 1 deletions

View File

@ -63,5 +63,12 @@
<artifactId>guava</artifactId>
<version>r05</version>
</dependency>
<dependency>
<groupId>com.alipay.oceanbase</groupId>
<artifactId>oceanbase-client</artifactId>
<version>1.1.10</version>
<scope>system</scope>
<systemPath>${basedir}/src/main/libs/oceanbase-client-1.1.10.jar</systemPath>
</dependency>
</dependencies>
</project>

View File

@ -110,6 +110,14 @@ public enum DataBaseType {
break;
case Oscar:
break;
case OceanBase:
suffix = "yearIsDateType=false&zeroDateTimeBehavior=convertToNull&tinyInt1isBit=false&rewriteBatchedStatements=true";
if (jdbc.contains("?")) {
result = jdbc + "&" + suffix;
} else {
result = jdbc + "?" + suffix;
}
break;
default:
throw DataXException.asDataXException(DBUtilErrorCode.UNSUPPORTED_TYPE, "unsupported database type.");
}