mirror of
https://github.com/vrana/adminer.git
synced 2025-08-09 08:06:59 +02:00
Avoid fatal errors
This commit is contained in:
@@ -125,8 +125,7 @@ CREATE PROCEDURE adminer_alter (INOUT alter_command text) BEGIN
|
||||
FETCH tables INTO _table_name, _engine, _table_collation, _table_comment;
|
||||
IF NOT done THEN
|
||||
CASE _table_name";
|
||||
$result = $connection->query($query);
|
||||
while ($row = $result->fetch_assoc()) {
|
||||
foreach (get_rows($query) as $row) {
|
||||
$comment = $connection->quote($row["ENGINE"] == "InnoDB" ? preg_replace('~(?:(.+); )?InnoDB free: .*~', '\\1', $row["TABLE_COMMENT"]) : $row["TABLE_COMMENT"]);
|
||||
echo "
|
||||
WHEN " . $connection->quote($row["TABLE_NAME"]) . " THEN
|
||||
|
Reference in New Issue
Block a user