]> git.joonet.de Git - adminer.git/commitdiff
Prevent adminer to consider MariaDB sequences being views
authorVladimír Dudr <vladimir@tango-dj.cz>
Thu, 25 Feb 2021 15:40:56 +0000 (16:40 +0100)
committerJakub Vrana <jakub@vrana.cz>
Wed, 3 Mar 2021 10:17:32 +0000 (11:17 +0100)
adminer/db.inc.php
changes.txt

index a03580c199404ddac84021d1654b95dae8c2792e..6c879fceee3161918036e9125183307bc6616ca8 100644 (file)
@@ -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 '<tr' . odd() . '><td>' . checkbox(($view ? "views[]" : "tables[]"), $name, in_array($name, $tables_views, true), "", "", "", $id);
                                echo '<th>' . (support("table") || support("indexes") ? "<a href='" . h(ME) . "table=" . urlencode($name) . "' title='" . lang('Show structure') . "' id='$id'>" . h($name) . '</a>' : h($name));
index 0500f5cc30ebf53907c8dff305ef3a50158c0aa0..6c4301eb10314630d7aa0b40c49439953a987b56 100644 (file)
@@ -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)