1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-17 03:53:59 +02:00

Display type in schema

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@724 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2009-06-19 08:58:13 +00:00
parent 4956a3d66d
commit 1f733b0dda
2 changed files with 8 additions and 4 deletions

View File

@@ -230,6 +230,7 @@ function fields($table) {
preg_match('~^([^( ]+)(?:\\((.+)\\))?( unsigned)?( zerofill)?$~', $row["Type"], $match);
$return[$row["Field"]] = array(
"field" => $row["Field"],
"Type" => $row["Type"],
"type" => $match[1],
"length" => $match[2],
"unsigned" => ltrim($match[3] . $match[4]),