From b57f0de628b2c887d930fe054b70fa5ae0abfb80 Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Sun, 21 Jun 2009 23:22:34 +0000 Subject: [PATCH] Remove confusion between type and Type git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@730 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- adminer/include/mysql.inc.php | 2 +- adminer/schema.inc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/adminer/include/mysql.inc.php b/adminer/include/mysql.inc.php index e51417af..11e81c95 100644 --- a/adminer/include/mysql.inc.php +++ b/adminer/include/mysql.inc.php @@ -235,7 +235,7 @@ function fields($table) { preg_match('~^([^( ]+)(?:\\((.+)\\))?( unsigned)?( zerofill)?$~', $row["Type"], $match); $return[$row["Field"]] = array( "field" => $row["Field"], - "Type" => $row["Type"], + "full_type" => $row["Type"], "type" => $match[1], "length" => $match[2], "unsigned" => ltrim($match[3] . $match[4]), diff --git a/adminer/schema.inc.php b/adminer/schema.inc.php index 89fd50ce..5af1f477 100644 --- a/adminer/schema.inc.php +++ b/adminer/schema.inc.php @@ -65,7 +65,7 @@ foreach ($schema as $name => $table) { echo '' . htmlspecialchars($name) . "
\n"; foreach ($table["fields"] as $field) { $val = htmlspecialchars($field["field"]); - $title = ' title="' . htmlspecialchars($field["Type"] . ($field["null"] ? " " . lang('NULL') : '')) . '"'; + $title = ' title="' . htmlspecialchars($field["full_type"] . ($field["null"] ? " " . lang('NULL') : '')) . '"'; if (preg_match('~char|text~', $field["type"])) { $val = "$val"; } elseif (preg_match('~date|time|year~', $field["type"])) {