From b169be813efa0d42725cc9d3c7cae043ee9b37cc Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Mon, 9 Jul 2007 23:13:34 +0000 Subject: [PATCH] Normalize enum and set git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@93 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- call.inc.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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, );