From 2da5683b9905679b5aec569cf88e182b966c018e Mon Sep 17 00:00:00 2001 From: Takashi SHIRAI Date: Mon, 17 May 2021 09:51:46 +0900 Subject: [PATCH] Support to access tablespaces of granted tables Signed-off-by: Takashi SHIRAI --- adminer/drivers/oracle.inc.php | 7 ++++++- changes.txt | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/adminer/drivers/oracle.inc.php b/adminer/drivers/oracle.inc.php index 54a673ec..f5645954 100644 --- a/adminer/drivers/oracle.inc.php +++ b/adminer/drivers/oracle.inc.php @@ -188,7 +188,12 @@ if (isset($_GET["oracle"])) { } function get_databases() { - return get_vals("SELECT tablespace_name FROM user_tablespaces ORDER BY 1"); + return get_vals("SELECT DISTINCT tablespace_name FROM ( +SELECT tablespace_name FROM user_tablespaces +UNION SELECT tablespace_name FROM all_tables WHERE tablespace_name IS NOT NULL +) +ORDER BY 1" + ); } function limit($query, $where, $limit, $offset = 0, $separator = " ") { diff --git a/changes.txt b/changes.txt index b416b23a..581cb09c 100644 --- a/changes.txt +++ b/changes.txt @@ -1,4 +1,5 @@ Adminer 4.16.0-dev: +Oracle: Include tables granted by other user Adminer 4.15.0: Escape unknown field in select