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.
This commit is contained in:
mark_story 2016-10-02 19:12:34 -04:00
parent 3587ac9976
commit 3a185f9713

View file

@ -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);
}
/**