1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-09 08:06:59 +02:00

Default trigger statement

This commit is contained in:
Jakub Vrana
2011-08-08 18:18:16 +02:00
parent 5275ed870b
commit 1a30f25311
6 changed files with 16 additions and 5 deletions

View File

@@ -440,6 +440,9 @@ ORDER BY conkey, conname") as $row) {
}
function trigger($name) {
if ($name == "") {
return array("Statement" => "EXECUTE PROCEDURE ()");
}
$rows = get_rows('SELECT trigger_name AS "Trigger", condition_timing AS "Timing", event_manipulation AS "Event", \'FOR EACH \' || action_orientation AS "Type", action_statement AS "Statement" FROM information_schema.triggers WHERE event_object_table = ' . q($_GET["trigger"]) . ' AND trigger_name = ' . q($name));
return reset($rows);
}