first commit
This commit is contained in:
4
pom.xml
4
pom.xml
@ -48,7 +48,7 @@
|
||||
<!-- PgSql -->
|
||||
<pgsql.version>42.6.0</pgsql.version>
|
||||
<!-- Oracle 11g -->
|
||||
<oracle.version>11.2.0.4</oracle.version>
|
||||
<oracle.version>23.2.0.0</oracle.version>
|
||||
<!-- mybatis -->
|
||||
<mybatisplus-spring-boot.version>3.5.3.1</mybatisplus-spring-boot.version>
|
||||
<!-- easy poi -->
|
||||
@ -118,7 +118,7 @@
|
||||
<!-- Oracle 11g -->
|
||||
<dependency>
|
||||
<groupId>com.oracle.database.jdbc</groupId>
|
||||
<artifactId>ojdbc6</artifactId>
|
||||
<artifactId>ojdbc8</artifactId>
|
||||
<version>${oracle.version}</version>
|
||||
</dependency>
|
||||
<!-- mybatis plus -->
|
||||
|
@ -31,7 +31,7 @@
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.oracle.database.jdbc</groupId>
|
||||
<artifactId>ojdbc6</artifactId>
|
||||
<artifactId>ojdbc8</artifactId>
|
||||
</dependency>
|
||||
<!-- mybatis plus -->
|
||||
<dependency>
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user