mirror of
https://github.com/vrana/adminer.git
synced 2025-08-20 05:11:25 +02:00
PostgreSQL, MS SQL, Oracle: Hide table actions for information_schema
This commit is contained in:
@@ -392,7 +392,7 @@ WHERE OBJECT_NAME(i.object_id) = " . q($table)
|
||||
}
|
||||
|
||||
function information_schema($db) {
|
||||
return false;
|
||||
return get_schema() == "INFORMATION_SCHEMA";
|
||||
}
|
||||
|
||||
function error() {
|
||||
|
@@ -346,7 +346,7 @@ ORDER BY ac.constraint_type, aic.column_position", $connection2) as $row) {
|
||||
}
|
||||
|
||||
function information_schema($db) {
|
||||
return false;
|
||||
return get_schema() == "INFORMATION_SCHEMA";
|
||||
}
|
||||
|
||||
function error() {
|
||||
|
@@ -471,7 +471,7 @@ ORDER BY conkey, conname") as $row) {
|
||||
}
|
||||
|
||||
function information_schema($db) {
|
||||
return ($db == "information_schema");
|
||||
return get_schema() == "information_schema";
|
||||
}
|
||||
|
||||
function error() {
|
||||
|
Reference in New Issue
Block a user