Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix typo.
  • Loading branch information
markstory committed Oct 5, 2016
1 parent 3a185f9 commit 689d516
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Cake/Model/Datasource/Database/Postgres.php
Expand Up @@ -727,10 +727,10 @@ public function column($real) {
* @return int An integer representing the length of the column
*/
public function length($real) {
if (strpos($col, '(') !== false) {
list($col, $limit) = explode('(', $col);
if (strpos($real, '(') !== false) {
list($real, $limit) = explode('(', $real);
}
if ($col === 'uuid') {
if ($real === 'uuid') {
return 36;
}
return parent::length($real);
Expand Down

0 comments on commit 689d516

Please sign in to comment.