Event definition is in field number 3

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@475 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana 2008-09-01 17:06:32 +00:00
parent 0685b4c25c
commit 4038271af5

View file

@ -46,7 +46,7 @@ if ($_POST) {
if ($mysql->server_info >= 5.1) {
$result = $mysql->query("SHOW EVENTS");
while ($row = $result->fetch_assoc()) {
$out .= $mysql->result($mysql->query("SHOW CREATE EVENT " . idf_escape($row["Name"])), 1) . ";;\n\n";
$out .= $mysql->result($mysql->query("SHOW CREATE EVENT " . idf_escape($row["Name"])), 3) . ";;\n\n";
}
$result->free();
}