From 3a185f9713970b45f7bfd54ef8b66bb28cc5f48c Mon Sep 17 00:00:00 2001 From: mark_story Date: Sun, 2 Oct 2016 19:12:34 -0400 Subject: [PATCH] Remove incorrrect postgres implementation. It was wrong, and no longer really needs to exist as the parent method covers all the scenarios that were previously required other than the uuid one. --- lib/Cake/Model/Datasource/Database/Postgres.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/Cake/Model/Datasource/Database/Postgres.php b/lib/Cake/Model/Datasource/Database/Postgres.php index dfe5272ec..152a9b405 100644 --- a/lib/Cake/Model/Datasource/Database/Postgres.php +++ b/lib/Cake/Model/Datasource/Database/Postgres.php @@ -727,19 +727,13 @@ class Postgres extends DboSource { * @return int An integer representing the length of the column */ public function length($real) { - $col = str_replace(array(')', 'unsigned'), '', $real); - $limit = null; - if (strpos($col, '(') !== false) { list($col, $limit) = explode('(', $col); } if ($col === 'uuid') { return 36; } - if ($limit) { - return (int)$limit; - } - return null; + return parent::length($real); } /**