mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix failing test in postgres.
This commit is contained in:
parent
689d516a99
commit
9c3b17cbc7
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue