Prevent adminer to consider MariaDB sequences being views
This commit is contained in:
parent
72beecc0ab
commit
f6880b59d6
|
@ -83,7 +83,7 @@ if ($adminer->homepage()) {
|
||||||
|
|
||||||
$tables = 0;
|
$tables = 0;
|
||||||
foreach ($tables_list as $name => $type) {
|
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);
|
$id = h("Table-" . $name);
|
||||||
echo '<tr' . odd() . '><td>' . checkbox(($view ? "views[]" : "tables[]"), $name, in_array($name, $tables_views, true), "", "", "", $id);
|
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));
|
echo '<th>' . (support("table") || support("indexes") ? "<a href='" . h(ME) . "table=" . urlencode($name) . "' title='" . lang('Show structure') . "' id='$id'>" . h($name) . '</a>' : h($name));
|
||||||
|
|
|
@ -2,6 +2,7 @@ Adminer 4.8.1-dev:
|
||||||
Fix more PHP 8 warnings (bug #781)
|
Fix more PHP 8 warnings (bug #781)
|
||||||
Avoid PHP warnings with PDO drivers (bug #786, regression from 4.7.8)
|
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)
|
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 UPDATE OF triggers (bug #789)
|
||||||
PostgreSQL: Support triggers with more events (OR)
|
PostgreSQL: Support triggers with more events (OR)
|
||||||
PostgreSQL < 10 PDO: Avoid displaying GENERATED ALWAYS BY IDENTITY everywhere (bug #785, regression from 4.7.9)
|
PostgreSQL < 10 PDO: Avoid displaying GENERATED ALWAYS BY IDENTITY everywhere (bug #785, regression from 4.7.9)
|
||||||
|
|
Loading…
Reference in a new issue