From e9ca7eb7a60cecc6a22631d255ac15da97091b06 Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Fri, 6 Jul 2007 15:48:57 +0000 Subject: [PATCH] NULL in SHOW COLUMNS can be empty git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@71 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- functions.inc.php | 2 +- table.inc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/functions.inc.php b/functions.inc.php index b9fce472..764667cd 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -41,7 +41,7 @@ function fields($table) { "length" => $match[2], "unsigned" => ltrim($match[3] . $match[4]), "default" => $row["Default"], - "null" => ($row["Null"] != "NO"), + "null" => ($row["Null"] == "YES"), "extra" => $row["Extra"], "collation" => $row["Collation"], "privileges" => explode(",", $row["Privileges"]), diff --git a/table.inc.php b/table.inc.php index 4f96938b..7cfac1a1 100644 --- a/table.inc.php +++ b/table.inc.php @@ -7,7 +7,7 @@ if (!$result) { } else { echo "\n"; while ($row = mysql_fetch_assoc($result)) { - echo "\n"; + echo "\n"; } echo "
" . htmlspecialchars($row["Field"]) . "$row[Type]" . ($row["Null"] == "NO" ? "" : " NULL") . "
" . htmlspecialchars($row["Field"]) . "$row[Type]" . ($row["Null"] == "YES" ? " NULL" : "") . "
\n"; mysql_free_result($result);