forked from github/dataease
fix: 判断oracle timestemp类型
This commit is contained in:
parent
9b63799bad
commit
031f588fbd
@ -796,7 +796,7 @@ public class JdbcProvider extends DefaultJdbcProvider {
|
|||||||
break;
|
break;
|
||||||
case sqlServer:
|
case sqlServer:
|
||||||
SqlServerConfiguration sqlServerConfiguration = new Gson().fromJson(datasource.getConfiguration(), SqlServerConfiguration.class);
|
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");
|
throw new Exception("Invalid database name");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -60,6 +60,7 @@ public class OracleQueryProvider extends QueryProvider {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Integer transFieldType(String field) {
|
public Integer transFieldType(String field) {
|
||||||
|
field = field.split("()")[0];
|
||||||
switch (field) {
|
switch (field) {
|
||||||
case "CHAR":
|
case "CHAR":
|
||||||
case "VARCHAR2":
|
case "VARCHAR2":
|
||||||
|
Loading…
Reference in New Issue
Block a user