Diff of /trunk/adminer/dump.inc.php [r1518] .. [r1519]  Maximize  Restore

Switch to side-by-side view

--- a/trunk/adminer/dump.inc.php
+++ b/trunk/adminer/dump.inc.php
@@ -80,8 +80,11 @@
 							if ($data) {
 								dump_data($row["Name"], $_POST["data_style"]);
 							}
-							if ($_POST["triggers"]) {
-								dump_triggers($row["Name"], $_POST["table_style"]);
+							if ($_POST["format"] == "sql" && $_POST["triggers"]) {
+								$triggers = trigger_sql($row["Name"], $_POST["table_style"]);
+								if ($triggers) {
+									echo "\nDELIMITER ;;\n$triggers\nDELIMITER ;\n";
+								}
 							}
 							if ($ext == "tar") {
 								echo tar_file((DB != "" ? "" : "$db/") . "$row[Name].csv", ob_get_clean());

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks