fix: 判断oracle timestemp类型

This commit is contained in:
taojinlong 2023-07-22 23:47:52 +08:00
parent 9b63799bad
commit 031f588fbd
2 changed files with 2 additions and 1 deletions

View File

@ -796,7 +796,7 @@ public class JdbcProvider extends DefaultJdbcProvider {
break;
case sqlServer:
SqlServerConfiguration sqlServerConfiguration = new Gson().fromJson(datasource.getConfiguration(), SqlServerConfiguration.class);
if(!sqlServerConfiguration.getDataBase().matches("^[0-9a-zA-Z_.-]{1,}$")){
if(!sqlServerConfiguration.getDataBase().matches("^[0-9a-zA-Z_.-\u4E00-\u9FA5\u8FBD-\u9FBB\uFA0E-\uFA29]{1,}$")){
throw new Exception("Invalid database name");
}
break;

View File

@ -60,6 +60,7 @@ public class OracleQueryProvider extends QueryProvider {
@Override
public Integer transFieldType(String field) {
field = field.split("()")[0];
switch (field) {
case "CHAR":
case "VARCHAR2":