Fixing column length parsing in DboMysql

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4329 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2007-01-24 13:03:24 +00:00
parent ea2c7819f3
commit f9a00da02b

View file

@ -365,8 +365,8 @@ class DboMysql extends DboSource {
}
$col = r(')', '', $real);
$limit = null;
@list($col, $limit) = explode('(', $col);
$limit = $this->length($real);
@list($col) = explode('(', $col);
if (in_array($col, array('date', 'time', 'datetime', 'timestamp'))) {
return $col;