From: VladimĂ­r Dudr Date: Thu, 25 Feb 2021 15:40:56 +0000 (+0100) Subject: Prevent adminer to consider MariaDB sequences being views X-Git-Tag: v4.8.1~4 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=f6880b59d6ab40444407616701c1376c90aba5a5;p=adminer.git Prevent adminer to consider MariaDB sequences being views --- diff --git a/adminer/db.inc.php b/adminer/db.inc.php index a03580c1..6c879fce 100644 --- a/adminer/db.inc.php +++ b/adminer/db.inc.php @@ -83,7 +83,7 @@ if ($adminer->homepage()) { $tables = 0; foreach ($tables_list as $name => $type) { - $view = ($type !== null && !preg_match('~table~i', $type)); + $view = ($type !== null && !preg_match('~table|sequence~i', $type)); $id = h("Table-" . $name); echo '' . checkbox(($view ? "views[]" : "tables[]"), $name, in_array($name, $tables_views, true), "", "", "", $id); echo '' . (support("table") || support("indexes") ? "" . h($name) . '' : h($name)); diff --git a/changes.txt b/changes.txt index 0500f5cc..6c4301eb 100644 --- a/changes.txt +++ b/changes.txt @@ -2,6 +2,7 @@ Adminer 4.8.1-dev: Fix more PHP 8 warnings (bug #781) Avoid PHP warnings with PDO drivers (bug #786, regression from 4.7.8) MySQL: Allow moving views to other DB and renaming DB with views (bug #783) +MariaDB: Do not treat sequences as views (PR #416) PostgreSQL: Support UPDATE OF triggers (bug #789) PostgreSQL: Support triggers with more events (OR) PostgreSQL < 10 PDO: Avoid displaying GENERATED ALWAYS BY IDENTITY everywhere (bug #785, regression from 4.7.9)