]> git.joonet.de Git - adminer.git/commitdiff
Types
authorjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Wed, 4 Jul 2007 14:33:52 +0000 (14:33 +0000)
committerjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Wed, 4 Jul 2007 14:33:52 +0000 (14:33 +0000)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@21 7c3ca157-0c34-0410-bff1-cbf682f78f5c

functions.inc.php

index bb2b3d8242e8912e85213f8edb93c529ed003807..a048114ecf870e253b99af0a45d027a83c782aa1 100644 (file)
@@ -133,6 +133,19 @@ function redirect($location, $message = null) {
        exit;
 }
 
+function types() {
+       return 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,
+       );
+}
+
 if (get_magic_quotes_gpc()) {
     $process = array(&$_GET, &$_POST);
     while (list($key, $val) = each($process)) {