first commit

This commit is contained in:
2023-06-29 21:48:24 +08:00
parent bbf269dcae
commit cdf203bb09
3 changed files with 5 additions and 4 deletions

View File

@ -31,7 +31,7 @@
</dependency>
<dependency>
<groupId>com.oracle.database.jdbc</groupId>
<artifactId>ojdbc6</artifactId>
<artifactId>ojdbc8</artifactId>
</dependency>
<!-- mybatis plus -->
<dependency>

View File

@ -25,7 +25,7 @@ public class DbUtil {
if (DataBaseEnum.MY_SQL.getType().equals(dbType)) {
conn.setSchema(schema);
} else if (DataBaseEnum.ORACLE.getType().equals(dbType)) {
conn.setSchema(schema);
} else if (DataBaseEnum.POSTGRE_SQL.getType().equals(dbType)) {
conn.unwrap(PgConnection.class).setSchema(schema);
} else if (DataBaseEnum.SQL_SERVER.getType().equals(dbType)) {
@ -52,4 +52,5 @@ public class DbUtil {
IoUtil.close(statement);
}
}
}