1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-18 04:11:27 +02:00

Export triggers after data

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@706 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2009-06-15 21:47:29 +00:00
parent 7601e68449
commit da874a3f5e
2 changed files with 18 additions and 12 deletions

View File

@@ -101,18 +101,6 @@ DROP PROCEDURE adminer_alter;
<?php
//! indexes
}
if ($dbh->server_info >= 5) {
$result = $dbh->query("SHOW TRIGGERS LIKE '" . $dbh->escape_string(addcslashes($table, "%_")) . "'");
if ($result->num_rows) {
echo "DELIMITER ;;\n\n";
while ($row = $result->fetch_assoc()) {
echo "CREATE TRIGGER " . idf_escape($row["Trigger"]) . " $row[Timing] $row[Event] ON " . idf_escape($row["Table"]) . " FOR EACH ROW $row[Statement];;\n\n";
}
echo "DELIMITER ;\n\n";
}
$result->free();
}
}
}