1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-28 08:39:53 +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

@@ -697,6 +697,9 @@ if (!defined("DRIVER")) {
* @return array array("Trigger" => , "Timing" => , "Event" => , "Statement" => )
*/
function trigger($name) {
if ($name == "") {
return array();
}
$rows = get_rows("SHOW TRIGGERS WHERE `Trigger` = " . q($name));
return reset($rows);
}