Skip to content
Browse files

Assignments after functions

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@823 7c3ca157-0c34-0410-bff1-cbf682f78f5c
  • Loading branch information...
1 parent 16c4ddb commit acaa05d887b7f3ec493f018e4081785063406b6d jakubvrana committed Jul 14, 2009
Showing with 13 additions and 13 deletions.
  1. +13 −13 adminer/include/mysql.inc.php
View
26 adminer/include/mysql.inc.php
@@ -190,19 +190,6 @@ function connect($server, $username, $password) {
exit;
}
-// value means maximum unsigned length
-$types = array(
- "tinyint" => 3, "smallint" => 5, "mediumint" => 8, "int" => 10, "bigint" => 20,
- "float" => 12, "double" => 21, "decimal" => 66,
- "date" => 10, "datetime" => 19, "timestamp" => 19, "time" => 10, "year" => 4,
- "char" => 255, "varchar" => 65535,
- "binary" => 255, "varbinary" => 65535,
- "tinytext" => 255, "text" => 65535, "mediumtext" => 16777215, "longtext" => 4294967295,
- "tinyblob" => 255, "blob" => 65535, "mediumblob" => 16777215, "longblob" => 4294967295,
- "enum" => 65535, "set" => 64,
-);
-$unsigned = array("unsigned", "zerofill", "unsigned zerofill");
-
function connect() {
$dbh = new Min_DB;
$credentials = adminer_credentials();
@@ -353,3 +340,16 @@ function information_schema($db) {
global $dbh;
return ($dbh->server_info >= 5 && $db == "information_schema");
}
+
+// value means maximum unsigned length
+$types = array(
+ "tinyint" => 3, "smallint" => 5, "mediumint" => 8, "int" => 10, "bigint" => 20,
+ "float" => 12, "double" => 21, "decimal" => 66,
+ "date" => 10, "datetime" => 19, "timestamp" => 19, "time" => 10, "year" => 4,
+ "char" => 255, "varchar" => 65535,
+ "binary" => 255, "varbinary" => 65535,
+ "tinytext" => 255, "text" => 65535, "mediumtext" => 16777215, "longtext" => 4294967295,
+ "tinyblob" => 255, "blob" => 65535, "mediumblob" => 16777215, "longblob" => 4294967295,
+ "enum" => 65535, "set" => 64,
+);
+$unsigned = array("unsigned", "zerofill", "unsigned zerofill");

0 comments on commit acaa05d

Please sign in to comment.
Something went wrong with that request. Please try again.