fix(jdbc): expose Oracle indexes and objects (#7096)

* fix(jdbc): expose Oracle indexes and objects

* fix(jdbc): degrade unsupported index metadata to empty list

---------

Co-authored-by: zipg <4047349+zipg@users.noreply.github.com>
Co-authored-by: t8y2 <t8y2@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2026-08-25 00:10:22 +08:00
1 parent d9674029f3
commit 1d3d6c8bb1
3 files changed
+371

No files matched your search

+15
View File
@@ -6800,6 +6800,21 @@ async fn list_indexes_core_for_session(
drop(connections);
return external_driver_gaussdb_m_indexes(session, config.as_ref(), database, schema, table).await;
}
let config = config.clone();
let session = session.clone();
drop(connections);
return session
.invoke_with_timeout::<Vec<db::IndexInfo>>(
"listIndexes",
serde_json::json!({
"connection": config.as_ref(),
"database": database,
"schema": schema,
"table": table,
}),
agent_metadata_timeout(Some(config.as_ref())),
)
.await;
}
if let Some(client) = extract_pool!(&connections, &pool_key, Agent) {
drop(connections);