From 5c7948dd54324078174eaffa6cf22277ab7ec302 Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Tue, 23 Dec 2008 13:25:33 +0000 Subject: [PATCH] Parse float unsigned (thanks to Martin Horinek) git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@544 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.inc.php b/functions.inc.php index e3f37fb4..20ea1099 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -62,7 +62,7 @@ function fields($table) { $result = $mysql->query("SHOW FULL COLUMNS FROM " . idf_escape($table)); if ($result) { while ($row = $result->fetch_assoc()) { - preg_match('~^([^(]+)(?:\\((.+)\\))?( unsigned)?( zerofill)?$~', $row["Type"], $match); + preg_match('~^([^( ]+)(?:\\((.+)\\))?( unsigned)?( zerofill)?$~', $row["Type"], $match); $return[$row["Field"]] = array( "field" => $row["Field"], "type" => $match[1],