mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
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:
parent
ea2c7819f3
commit
f9a00da02b
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue