From: jakubvrana Date: Mon, 9 Jul 2007 23:13:34 +0000 (+0000) Subject: Normalize enum and set X-Git-Tag: v3.0.0~1413 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=b169be813efa0d42725cc9d3c7cae043ee9b37cc;p=adminer.git Normalize enum and set git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@93 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- diff --git a/call.inc.php b/call.inc.php index 653de71d..9e206c9e 100644 --- a/call.inc.php +++ b/call.inc.php @@ -1,6 +1,9 @@ $match) { $field = array( "field" => str_replace("``", "`", $match[2]) . $match[3], "type" => $match[4], //! type aliases - "length" => $match[5], //! replace \' by '', replace "" by '' + "length" => preg_replace_callback("~$length~s", 'normalize_enum', $match[5]), "unsigned" => ($match[6] ? "unsigned" : ""), // zerofill ignored "null" => true, );