This commit is contained in:
Looly 2024-04-22 13:15:28 +08:00
parent 0942cf2c60
commit f1aab33dc1
3 changed files with 32 additions and 8 deletions

View File

@ -136,12 +136,6 @@
<version>${hsqldb.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.zenframework.z8.dependencies.commons</groupId>
<artifactId>ojdbc6</artifactId>
<version>2.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
@ -184,5 +178,11 @@
<version>8.1.2.141</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.oracle.database.jdbc</groupId>
<artifactId>ojdbc8</artifactId>
<version>21.13.0.0</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,24 @@
package cn.hutool.db;
import cn.hutool.core.lang.Console;
import cn.hutool.db.ds.DSFactory;
import cn.hutool.db.meta.MetaUtil;
import cn.hutool.db.meta.Table;
import org.junit.Ignore;
import org.junit.Test;
import javax.sql.DataSource;
import java.sql.SQLException;
public class IssueI9BANETest {
@Test
@Ignore
public void metaTest() throws SQLException {
final Db db = Db.use("orcl");
db.find(Entity.create("\"1234\""));
final DataSource ds = DSFactory.get("orcl");
final Table tableMeta = MetaUtil.getTableMeta(ds, null, null, "\"1234\"");
Console.log(tableMeta.getIndexInfoList());
}
}

View File

@ -47,8 +47,8 @@ remarks = true
# 测试用Oracle数据库
[orcl]
url = jdbc:oracle:thin:@//looly.centos:1521/XE
user = looly
url = jdbc:oracle:thin:@//localhost:1521/XEPDB1
user = system
pass = 123456
remarks = true