mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
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:
parent
3587ac9976
commit
3a185f9713
1 changed files with 1 additions and 7 deletions
|
@ -727,19 +727,13 @@ class Postgres extends DboSource {
|
||||||
* @return int An integer representing the length of the column
|
* @return int An integer representing the length of the column
|
||||||
*/
|
*/
|
||||||
public function length($real) {
|
public function length($real) {
|
||||||
$col = str_replace(array(')', 'unsigned'), '', $real);
|
|
||||||
$limit = null;
|
|
||||||
|
|
||||||
if (strpos($col, '(') !== false) {
|
if (strpos($col, '(') !== false) {
|
||||||
list($col, $limit) = explode('(', $col);
|
list($col, $limit) = explode('(', $col);
|
||||||
}
|
}
|
||||||
if ($col === 'uuid') {
|
if ($col === 'uuid') {
|
||||||
return 36;
|
return 36;
|
||||||
}
|
}
|
||||||
if ($limit) {
|
return parent::length($real);
|
||||||
return (int)$limit;
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue