diff --git a/adminer/include/editing.inc.php b/adminer/include/editing.inc.php
index 297e1da5..eb1c0554 100644
--- a/adminer/include/editing.inc.php
+++ b/adminer/include/editing.inc.php
@@ -90,7 +90,8 @@ function select($result, $connection2 = null, $orgtables = array(), $limit = 0)
if ($link) {
$val = "$val";
}
- echo "
$val";
+ // https://dev.mysql.com/doc/dev/mysql-server/latest/field__types_8h.html
+ echo " | $val";
}
}
echo ($i ? "\n" : " " . lang('No rows.')) . "\n";
diff --git a/adminer/select.inc.php b/adminer/select.inc.php
index 32688b24..83122c6e 100644
--- a/adminer/select.inc.php
+++ b/adminer/select.inc.php
@@ -453,7 +453,7 @@ if (!$columns && support("table")) {
$value = $_POST["val"][$unique_idf][bracket_escape($key)];
$editable = !is_array($row[$key]) && is_utf8($val) && $rows[$n][$key] == $row[$key] && !$functions[$key] && !$field["generated"];
$text = preg_match('~text|json|lob~', $field["type"]);
- echo " | " . ($text ? "" : "");
diff --git a/changes.txt b/changes.txt
index 58f8d0c8..a53e2dfd 100644
--- a/changes.txt
+++ b/changes.txt
@@ -1,4 +1,5 @@
Adminer dev:
+Align numbers right (bug #912)
CSS: Dark mode syntax highlighting
SQL textarea: Open help on Ctrl+click
Designs named adminer-dark.css use dark basic style
diff --git a/editor/include/adminer.inc.php b/editor/include/adminer.inc.php
index 0516eacc..6ab6da82 100644
--- a/editor/include/adminer.inc.php
+++ b/editor/include/adminer.inc.php
@@ -213,9 +213,8 @@ ORDER BY ORDINAL_POSITION", null, "") as $row //! requires MySQL 5
if ($link) {
$return = "$return";
}
- if (!$link && !like_bool($field) && preg_match(number_type(), $field["type"])) {
- $return = " $return "; // Firefox doesn't support
- } elseif (preg_match('~date~', $field["type"])) {
+ // Firefox doesn't support
+ if (preg_match('~date~', $field["type"])) {
$return = "$return ";
}
return $return;
|