[jOOQ/jOOQ#17337] ORA-17068: Invalid arguments in call when calling OracleDatabaseMetaData.getIndexInfo() with quoted object names

This commit is contained in:
Lukas Eder 2024-09-23 21:04:36 +02:00
parent 67ef8c0098
commit 59a7bb1658

View File

@ -1038,9 +1038,17 @@ final class MetaImpl extends AbstractMeta {
return Tools.<List<Index>, RuntimeException>ignoreNPE(
() -> {
Result<Record> result = removeSystemIndexes(meta(meta -> {
System.out.println(this);
String tableName;
try (ResultSet rs = catalogSchema(getCatalog(), getSchema(), (c, s) -> meta.getIndexInfo(c, s, getName(), false, true))) {
tableName = getName();
try (ResultSet rs = catalogSchema(getCatalog(), getSchema(), (c, s) -> meta.getIndexInfo(c, s, tableName, false, true))) {
return dsl().fetch(
rs,
String.class, // TABLE_CAT