From 24b5e25f4b7b8277d03f52c33d5faa3c87ab96f7 Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Wed, 4 Jul 2007 14:33:52 +0000 Subject: [PATCH] Types git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@21 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- functions.inc.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/functions.inc.php b/functions.inc.php index bb2b3d82..a048114e 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -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)) {