Remove confusion between type and Type
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@730 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
64ba92421b
commit
b57f0de628
|
@ -235,7 +235,7 @@ function fields($table) {
|
||||||
preg_match('~^([^( ]+)(?:\\((.+)\\))?( unsigned)?( zerofill)?$~', $row["Type"], $match);
|
preg_match('~^([^( ]+)(?:\\((.+)\\))?( unsigned)?( zerofill)?$~', $row["Type"], $match);
|
||||||
$return[$row["Field"]] = array(
|
$return[$row["Field"]] = array(
|
||||||
"field" => $row["Field"],
|
"field" => $row["Field"],
|
||||||
"Type" => $row["Type"],
|
"full_type" => $row["Type"],
|
||||||
"type" => $match[1],
|
"type" => $match[1],
|
||||||
"length" => $match[2],
|
"length" => $match[2],
|
||||||
"unsigned" => ltrim($match[3] . $match[4]),
|
"unsigned" => ltrim($match[3] . $match[4]),
|
||||||
|
|
|
@ -65,7 +65,7 @@ foreach ($schema as $name => $table) {
|
||||||
echo '<a href="' . htmlspecialchars($SELF) . 'table=' . urlencode($name) . '"><strong>' . htmlspecialchars($name) . "</strong></a><br />\n";
|
echo '<a href="' . htmlspecialchars($SELF) . 'table=' . urlencode($name) . '"><strong>' . htmlspecialchars($name) . "</strong></a><br />\n";
|
||||||
foreach ($table["fields"] as $field) {
|
foreach ($table["fields"] as $field) {
|
||||||
$val = htmlspecialchars($field["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"])) {
|
if (preg_match('~char|text~', $field["type"])) {
|
||||||
$val = "<span class='char'$title>$val</span>";
|
$val = "<span class='char'$title>$val</span>";
|
||||||
} elseif (preg_match('~date|time|year~', $field["type"])) {
|
} elseif (preg_match('~date|time|year~', $field["type"])) {
|
||||||
|
|
Loading…
Reference in a new issue