mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
add test
This commit is contained in:
parent
0942cf2c60
commit
f1aab33dc1
@ -136,12 +136,6 @@
|
|||||||
<version>${hsqldb.version}</version>
|
<version>${hsqldb.version}</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>org.zenframework.z8.dependencies.commons</groupId>
|
|
||||||
<artifactId>ojdbc6</artifactId>
|
|
||||||
<version>2.0</version>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.mysql</groupId>
|
<groupId>com.mysql</groupId>
|
||||||
<artifactId>mysql-connector-j</artifactId>
|
<artifactId>mysql-connector-j</artifactId>
|
||||||
@ -184,5 +178,11 @@
|
|||||||
<version>8.1.2.141</version>
|
<version>8.1.2.141</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.oracle.database.jdbc</groupId>
|
||||||
|
<artifactId>ojdbc8</artifactId>
|
||||||
|
<version>21.13.0.0</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
||||||
|
24
hutool-db/src/test/java/cn/hutool/db/IssueI9BANETest.java
Normal file
24
hutool-db/src/test/java/cn/hutool/db/IssueI9BANETest.java
Normal 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());
|
||||||
|
}
|
||||||
|
}
|
@ -47,8 +47,8 @@ remarks = true
|
|||||||
|
|
||||||
# 测试用Oracle数据库
|
# 测试用Oracle数据库
|
||||||
[orcl]
|
[orcl]
|
||||||
url = jdbc:oracle:thin:@//looly.centos:1521/XE
|
url = jdbc:oracle:thin:@//localhost:1521/XEPDB1
|
||||||
user = looly
|
user = system
|
||||||
pass = 123456
|
pass = 123456
|
||||||
remarks = true
|
remarks = true
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user