1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-05 14:17:26 +02:00

Support to access tablespaces of granted tables

Signed-off-by: Takashi SHIRAI <shirai@nintendo.co.jp>
This commit is contained in:
Takashi SHIRAI
2021-05-17 09:51:46 +09:00
committed by Jakub Vrana
parent 8ff20622fb
commit 2da5683b99
2 changed files with 7 additions and 1 deletions

View File

@@ -188,7 +188,12 @@ if (isset($_GET["oracle"])) {
} }
function get_databases() { 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 = " ") { function limit($query, $where, $limit, $offset = 0, $separator = " ") {

View File

@@ -1,4 +1,5 @@
Adminer 4.16.0-dev: Adminer 4.16.0-dev:
Oracle: Include tables granted by other user
Adminer 4.15.0: Adminer 4.15.0:
Escape unknown field in select Escape unknown field in select