修复Oracle下特殊表名导致meta信息获取不到问题

This commit is contained in:
Looly
2024-04-29 12:55:07 +08:00
parent 4ce3926c9c
commit 8f3943557c
4 changed files with 262 additions and 109 deletions

View File

@@ -12,11 +12,11 @@ public class IssueI9BANETest {
@Test
@Disabled
void metaTest() {
final Db db = Db.of("orcl");
db.find(Entity.of("\"1234\""));
final DSWrapper ds = DSUtil.getDS("orcl");
final Table tableMeta = MetaUtil.getTableMeta(ds, null, null, "\"1234\"");
Console.log(tableMeta.getIndexInfoList());
Console.log("remarks: " + tableMeta.getRemarks());
Console.log("pks: " + tableMeta.getPkNames());
Console.log("columns: " + tableMeta.getColumns());
Console.log("index: " + tableMeta.getIndexInfoList());
}
}