Skip to content

Commit

Permalink
Fix failing test in postgres.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Oct 6, 2016
1 parent 689d516 commit 9c3b17c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Cake/Model/Datasource/Database/Postgres.php
Expand Up @@ -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);
Expand Down

0 comments on commit 9c3b17c

Please sign in to comment.