1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 23:57:29 +02:00

PostgreSQL: Do not show triggers from other schemas

This commit is contained in:
salacr
2021-02-08 20:43:40 +01:00
committed by Jakub Vrana
parent 51abdcdab9
commit 91da14b15c
2 changed files with 2 additions and 1 deletions

View File

@@ -623,7 +623,7 @@ ORDER BY connamespace, conname") as $row) {
function triggers($table) {
$return = array();
foreach (get_rows("SELECT * FROM information_schema.triggers WHERE event_object_table = " . q($table)) as $row) {
foreach (get_rows("SELECT * FROM information_schema.triggers WHERE trigger_schema = current_schema() AND event_object_table = " . q($table)) as $row) {
$return[$row["trigger_name"]] = array($row["action_timing"], $row["event_manipulation"]);
}
return $return;