mirror of
https://github.com/vrana/adminer.git
synced 2026-02-23 15:11:23 +01:00
Select: Display NULL in column title
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
## Adminer dev
|
||||
- Select: Disable Ctrl+click inline edit without UPDATE privilege
|
||||
- Select: Display NULL in column title
|
||||
- Export: Remember unchecked objects (regression from 5.0.6)
|
||||
- Foreign key: Display new field in case of an error
|
||||
- PostgreSQL: Order NULL last
|
||||
|
||||
@@ -182,7 +182,7 @@ class Adminer {
|
||||
* @return string HTML code, "" to ignore field
|
||||
*/
|
||||
function fieldName(array $field, int $order = 0): string {
|
||||
$type = $field["full_type"];
|
||||
$type = $field["full_type"] . ($field["null"] ? " NULL" : "");
|
||||
$comment = $field["comment"];
|
||||
return '<span title="' . h($type . ($comment != "" ? ($type ? ": " : "") . $comment : '')) . '">' . h($field["field"]) . '</span>';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user