diff --git a/CHANGELOG.md b/CHANGELOG.md index fc219994..f7799b55 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ - Autocomplete: Support table aliases - Fix type error in Create function (bug #1053, regression from 5.1.1) - Add border to column actions (bug #1072) +- Align money values right (bug #1071) - MySQL: Avoid warning on selecting tables with fulltext indexes (bug #1036) - MySQL, PostgreSQL: Support index algorithms (bug #1030) - MySQL: Fix connecting to localhost:3306 (bug #1057, regression from 5.1.1) diff --git a/adminer/select.inc.php b/adminer/select.inc.php index 267c95e6..f429940d 100644 --- a/adminer/select.inc.php +++ b/adminer/select.inc.php @@ -460,12 +460,10 @@ if (!$columns && support("table")) { $id = h("val[$unique_idf][" . bracket_escape($key) . "]"); $posted = idx(idx($_POST["val"], $unique_idf), bracket_escape($key)); $editable = !is_array($row[$key]) && is_utf8($html) && $rows[$n][$key] == $row[$key] && !$functions[$key] && !$field["generated"]; - $text = preg_match('~text|json|lob~', $field["type"]); - $is_number = preg_match(number_type(), $field["type"]) - || preg_match('~^(CHAR_LENGTH|ROUND|FLOOR|CEIL|TIME_TO_SEC|COUNT|SUM)\(~', $column) - || (preg_match('~^(AVG|MIN|MAX)\((.+)\)~', $column, $match) && preg_match(number_type(), $fields[idf_unescape($match[2])]["type"])) - ; - echo "" . ($text ? "" : "");