From 9c3b17cbc71dbfd7f936c48ecfd3c7b1f00ea5d0 Mon Sep 17 00:00:00 2001 From: mark_story Date: Wed, 5 Oct 2016 22:28:51 -0400 Subject: [PATCH] Fix failing test in postgres. --- lib/Cake/Model/Datasource/Database/Postgres.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Cake/Model/Datasource/Database/Postgres.php b/lib/Cake/Model/Datasource/Database/Postgres.php index 7c0e58278..8673fbc5c 100644 --- a/lib/Cake/Model/Datasource/Database/Postgres.php +++ b/lib/Cake/Model/Datasource/Database/Postgres.php @@ -727,10 +727,11 @@ class Postgres extends DboSource { * @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);