]> git.joonet.de Git - adminer.git/commitdiff
Support to access tablespaces of granted tables
authorTakashi SHIRAI <shirai@nintendo.co.jp>
Mon, 17 May 2021 00:51:46 +0000 (09:51 +0900)
committerJakub Vrana <jakub@vrana.cz>
Wed, 19 Feb 2025 10:16:46 +0000 (11:16 +0100)
Signed-off-by: Takashi SHIRAI <shirai@nintendo.co.jp>
adminer/drivers/oracle.inc.php
changes.txt

index 54a673ec68852344bbe16b4832668a805170e152..f56459542e0ed540cd512cc1f899d792dbeb6769 100644 (file)
@@ -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 = " ") {
index b416b23a17e1faf60dba0870a670a632e4c7a43c..581cb09c6e1f80e16022deafe96b77a678e2ad6c 100644 (file)
@@ -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