From 6da632f4b383fac1373ce308e80503c7603f1fc7 Mon Sep 17 00:00:00 2001 From: "godzilla80@gmx.net" <> Date: Sun, 8 Nov 2009 10:56:03 +0000 Subject: Fixed Issue #191 - Bad parsing of MySQL ENUM type column --- framework/Data/Common/Mysql/TMysqlMetaData.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework/Data/Common/Mysql/TMysqlMetaData.php') diff --git a/framework/Data/Common/Mysql/TMysqlMetaData.php b/framework/Data/Common/Mysql/TMysqlMetaData.php index ae552cf3..a3b324d9 100644 --- a/framework/Data/Common/Mysql/TMysqlMetaData.php +++ b/framework/Data/Common/Mysql/TMysqlMetaData.php @@ -110,7 +110,7 @@ class TMysqlMetaData extends TDbMetaData //find SET/ENUM values if($this->isEnumSetType($info['DbType'])) - $info['DbTypeValues'] = preg_split('/\s*,\s*|\s+/', preg_replace('/\'|"/', '', $match[1])); + $info['DbTypeValues'] = preg_split("/[',]/S", $match[1], -1, PREG_SPLIT_NO_EMPTY); //find column size, precision and scale $pscale = array(); -- cgit v1.2.3