diff --git a/lib/Cake/Model/Datasource/Database/Postgres.php b/lib/Cake/Model/Datasource/Database/Postgres.php index 7c0e58278f6..8673fbc5cfc 100644 --- a/lib/Cake/Model/Datasource/Database/Postgres.php +++ b/lib/Cake/Model/Datasource/Database/Postgres.php @@ -727,10 +727,11 @@ public function column($real) { * @return int An integer representing the length of the column */ public function length($real) { + $col = $real; if (strpos($real, '(') !== false) { - list($real, $limit) = explode('(', $real); + list($col, $limit) = explode('(', $real); } - if ($real === 'uuid') { + if ($col === 'uuid') { return 36; } return parent::length($real);