mirror of
https://github.com/vrana/adminer.git
synced 2025-08-15 19:13:59 +02:00
Parse float unsigned (thanks to Martin Horinek)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@544 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -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],
|
||||
|
Reference in New Issue
Block a user