]> git.joonet.de Git - adminer.git/commitdiff
Inform about disabled event_scheduler (http://forum.zdrojak.cz/?topic=637)
authorJakub Vrana <jakub@vrana.cz>
Mon, 14 May 2012 00:40:36 +0000 (17:40 -0700)
committerJakub Vrana <jakub@vrana.cz>
Mon, 14 May 2012 00:40:36 +0000 (17:40 -0700)
adminer/db.inc.php
changes.txt

index 0ff7bce4ab1a7da109ea23eff1d20da86bb84d9d..77f8d3380b34c899a2360d455698b816f074fe15 100644 (file)
@@ -182,6 +182,10 @@ if ($adminer->homepage()) {
                                        echo "<td>$row[Ends]";
                                }
                                echo "</table>\n";
+                               $event_scheduler = $connection->result("SELECT @@event_scheduler");
+                               if ($event_scheduler && $event_scheduler != "ON") {
+                                       echo "<p class='error'><code class='jush-sqlset'>event_scheduler</code>: " . h($event_scheduler) . "\n";
+                               }
                        }
                        echo '<p><a href="' . h(ME) . 'event=">' . lang('Create event') . "</a>\n";
                }
index d7201026831c05829551ccb25e0af27f1b056c00..a6ab99acbfe14b49a5e27b5f6cbd2044b55c65f4 100644 (file)
@@ -3,6 +3,7 @@ Print current time next to executed SQL queries
 Highlight code in SQL command by CodeMirror
 Link to descending order
 Link to original table in EXPLAIN of SELECT * FROM table t
+MySQL: inform about disabled event_scheduler
 PostgreSQL: approximate row count in table overview
 Oracle: schema, processlist, table overview numbers
 Replace JSMin by better JavaScript minifier