From 689d516a9956852e0e611a1228efc6fb8da5219a Mon Sep 17 00:00:00 2001 From: mark_story Date: Tue, 4 Oct 2016 21:38:26 -0400 Subject: [PATCH] Fix typo. --- lib/Cake/Model/Datasource/Database/Postgres.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Cake/Model/Datasource/Database/Postgres.php b/lib/Cake/Model/Datasource/Database/Postgres.php index 152a9b405..7c0e58278 100644 --- a/lib/Cake/Model/Datasource/Database/Postgres.php +++ b/lib/Cake/Model/Datasource/Database/Postgres.php @@ -727,10 +727,10 @@ class Postgres extends DboSource { * @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);